SVN: rc-scripts/trunk/service

glen glen at pld-linux.org
Sun Mar 4 22:49:24 CET 2012


Author: glen
Date: Sun Mar  4 22:49:24 2012
New Revision: 12486

Modified:
   rc-scripts/trunk/service
Log:
fix message printing; pass anything to systemd if it is up (status is valid action too)

Modified: rc-scripts/trunk/service
==============================================================================
--- rc-scripts/trunk/service	(original)
+++ rc-scripts/trunk/service	Sun Mar  4 22:49:24 2012
@@ -124,8 +124,8 @@
 	esac
 done
 
-if [ -x /bin/systemd_booted ] && /bin/systemd_booted && /bin/systemctl status ${SERVICE}.service > /dev/null 2>&1; then
-	echo >&2 "Redirecting to /bin/systemctl ${OPTIONS} ${SERVICE}.service"
+if [ -x /bin/systemd_booted ] && /bin/systemd_booted; then
+	echo >&2 "Redirecting to /bin/systemctl ${ACTION} ${SERVICE}.service ${OPTIONS}"
 	exec /bin/systemctl ${ACTION} ${SERVICE}.service ${OPTIONS}
 elif [ -x "${SERVICEDIR}/${SERVICE}" ]; then
 	exec env -i USE_UPSTART=$USE_UPSTART LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" ${ACTION} ${OPTIONS}


More information about the pld-cvs-commit mailing list