svn commit: r389352 - in head/www: madsonic-standalone/files subsonic-standalone/files
Jeremie Le Hen
jlh at FreeBSD.org
Sat Jun 13 12:21:52 UTC 2015
Author: jlh (src committer)
Date: Sat Jun 13 12:21:51 2015
New Revision: 389352
URL: https://svnweb.freebsd.org/changeset/ports/389352
Log:
Fix and simplify startup script so it works on boot.
Approved by: madpilot
Modified:
head/www/madsonic-standalone/files/madsonic.in
head/www/subsonic-standalone/files/subsonic.in
Modified: head/www/madsonic-standalone/files/madsonic.in
==============================================================================
--- head/www/madsonic-standalone/files/madsonic.in Sat Jun 13 11:52:51 2015 (r389351)
+++ head/www/madsonic-standalone/files/madsonic.in Sat Jun 13 12:21:51 2015 (r389352)
@@ -51,18 +51,7 @@
. /etc/rc.subr
-case $0 in
-/etc/rc*)
- # during boot (shutdown) $0 is /etc/rc (/etc/rc.shutdown),
- # so get the name of the script from $_file
- name=$_file
- ;;
-*)
- name=$0
- ;;
-esac
-
-name=${0##*/}
+name=madsonic
rcvar=${name}_enable
procname="%%JAVA%%"
Modified: head/www/subsonic-standalone/files/subsonic.in
==============================================================================
--- head/www/subsonic-standalone/files/subsonic.in Sat Jun 13 11:52:51 2015 (r389351)
+++ head/www/subsonic-standalone/files/subsonic.in Sat Jun 13 12:21:51 2015 (r389352)
@@ -47,18 +47,7 @@
. /etc/rc.subr
-case $0 in
-/etc/rc*)
- # during boot (shutdown) $0 is /etc/rc (/etc/rc.shutdown),
- # so get the name of the script from $_file
- name=$_file
- ;;
-*)
- name=$0
- ;;
-esac
-
-name=${0##*/}
+name=subsonic
rcvar=${name}_enable
procname="%%JAVA%%"
More information about the svn-ports-head
mailing list