Paste number 29824: the diff

Paste number 29824: the diff
Pasted by: ignas
When:12 years, 7 months ago
Share:Tweet this! | http://paste.lisp.org/+N0G
Channel:#schooltool
Paste contents:
Raw Source | XML | Display As
--- schooltool.init	2006-11-13 17:49:15.000000000 +0200
+++ schooltool(2).init~	2006-11-08 17:49:34.000000000 +0200
@@ -4,7 +4,7 @@
 #
 set -e
 package=schooltool
-SCHOOLTOOL_INSTANCE=/home/ignas/src/schooltool
+SCHOOLTOOL_INSTANCE=/usr/lib/schooltool
 PIDFILE=$SCHOOLTOOL_INSTANCE/schooltool-skel/var/$package.pid
 DAEMON=$SCHOOLTOOL_INSTANCE/$package-server.py
 CONFIGFILE=$SCHOOLTOOL_INSTANCE/$package.conf
@@ -15,6 +15,8 @@
 PNAME=$package # truncated to 15 chars by the kernel
 SCRIPTNAME=/etc/init.d/$package
 
+SCHOOLTOOL_DAEMON_USER=root
+SCHOOLTOOL_DAEMON_GROUP=root
 
 # Gracefully exit if the package has been removed or is not configured.
 if test ! -x $DAEMON; then
@@ -35,7 +37,7 @@
         log_begin_msg "Starting $DESC..."
         start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE\
         -d $SCHOOLTOOL_INSTANCE \
-                --startas $DAEMON -- -d >/dev/null \
+                --chuid $SCHOOLTOOL_DAEMON_USER --startas $DAEMON -- -d >/dev/null \
                 || log_end_msg 1
         log_end_msg 0
     ;;

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.