Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jun 2015 12:21:52 +0000 (UTC)
From:      Jeremie Le Hen <jlh@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r389352 - in head/www: madsonic-standalone/files subsonic-standalone/files
Message-ID:  <201506131221.t5DCLqxV002833@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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%%"
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506131221.t5DCLqxV002833>