Mike Gilbert avatar Mike Gilbert committed 079485b

net-misc/ps3mediaserver: Init script changes.

(Portage version: 2.2.0_alpha86/hg/Linux x86_64, unsigned Manifest commit)

Comments (0)

Files changed (3)

net-misc/ps3mediaserver/files/ps3mediaserver.confd

-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ps3mediaserver/files/ps3mediaserver.confd,v 1.1 2011/11/30 07:28:28 floppym Exp $
-
-PMS_USER=
-PMS_GROUP=
-PMS_PIDFILE=/var/run/ps3mediaserver.pid

net-misc/ps3mediaserver/files/ps3mediaserver.initd

 #!/sbin/runscript
 # Copyright 1999-2011 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: $
+
+command="/usr/bin/ps3mediaserver"
+command_args="console"
+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 $?
-}

net-misc/ps3mediaserver/ps3mediaserver-9999.ebuild

 	EOF
 	domenu ${PN}.desktop
 
-	newconfd "${FILESDIR}/${PN}.confd" ${PN}
 	newinitd "${FILESDIR}/${PN}.initd" ${PN}
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.