diff options
Diffstat (limited to 'net-misc/ps3mediaserver/files/ps3mediaserver.initd')
-rw-r--r-- | net-misc/ps3mediaserver/files/ps3mediaserver.initd | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/net-misc/ps3mediaserver/files/ps3mediaserver.initd b/net-misc/ps3mediaserver/files/ps3mediaserver.initd index e732c09efe4e..db827e31e52c 100644 --- a/net-misc/ps3mediaserver/files/ps3mediaserver.initd +++ b/net-misc/ps3mediaserver/files/ps3mediaserver.initd @@ -1,23 +1,19 @@ #!/sbin/runscript -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/ps3mediaserver/files/ps3mediaserver.initd,v 1.1 2011/11/30 07:28:28 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/ps3mediaserver/files/ps3mediaserver.initd,v 1.2 2012/02/20 02:52:51 floppym Exp $ + +command="/usr/bin/ps3mediaserver" +command_args="console" +pidfile="${PMS_PIDFILE:-/var/run/ps3mediaserver.pid}" +retry="10" +start_stop_daemon_args=" + --background + --make-pidfile + ${PMS_USER:+--user} ${PMS_USER} + ${PMS_GROUP:+--group} ${PMS_GROUP} +" depend() { need net } - -start() { - ebegin "Starting ${RC_SVCNAME}" - start-stop-daemon --start --exec /usr/bin/ps3mediaserver \ - --user "${PMS_USER}" --group "${PMS_GROUP}" \ - --background --make-pidfile --pidfile "${PMS_PIDFILE}" \ - -- console - eend $? -} - -stop() { - ebegin "Stopping ${RC_SVCNAME}" - start-stop-daemon --stop --pidfile "${PMS_PIDFILE}" - eend $? -} |