/service
directory.
Daemontools' svscan
process
checks this directory every five seconds, and will quickly execute
-run
.-[$OPENACS_SERVICE_NAME etc]$killall nsd
+run
.[$OPENACS_SERVICE_NAME etc]$killall nsd
nsd: no process killed [$OPENACS_SERVICE_NAME etc]$emacs /var/lib/aolserver/$OPENACS_SERVICE_NAME/etc/daemontools/run
[$OPENACS_SERVICE_NAME etc]$exit
[root root]#ln -s /var/lib/aolserver/$OPENACS_SERVICE_NAME/etc/daemontools/ /service/$OPENACS_SERVICE_NAME
-Verify that AOLserver is running.
-[root root]#ps -auxw | grep nsd
$OPENACS_SERVICE_NAME 5562 14.4 6.2 22436 15952 ? S 11:55 0:04 /usr/local/aolserver/bin/nsd -it /var/lib/aolserver/$OPENACS_SERVICE_NAME/etc/config.tcl -u serve +Verify that AOLserver is running.
[root root]#+[root root]#ps -auxw | grep nsd
$OPENACS_SERVICE_NAME 5562 14.4 6.2 22436 15952 ? S 11:55 0:04 /usr/local/aolserver/bin/nsd -it /var/lib/aolserver/$OPENACS_SERVICE_NAME/etc/config.tcl -u serve root 5582 0.0 0.2 3276 628 pts/0 S 11:55 0:00 grep nsd -[root root]# -
The user $OPENACS_SERVICE_NAME can now control
the service $OPENACS_SERVICE_NAME with these
@@ -90,22 +91,18 @@
AOLserver services via daemontools. You can then restart a service
via restart-aolserver $OPENACS_SERVICE_NAME
-
-[root root]#cp /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/acs-core-docs/www/files/restart-aolserver-daemontools.txt /usr/local/bin/restart-aolserver
+[root root]#+[root root]#cp /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/acs-core-docs/www/files/restart-aolserver-daemontools.txt /usr/local/bin/restart-aolserver
[root root]#chmod 755 /usr/local/bin/restart-aolserver
-[root root]# -
At this point, these commands will work only for the
root
user. Grant permission for
the web
group to use
svc
commands on the
$OPENACS_SERVICE_NAME
-server.
-[root root]# /usr/local/bin/svgroup web /service/$OPENACS_SERVICE_NAME
+server.[root root]# /usr/local/bin/svgroup web /service/$OPENACS_SERVICE_NAME
-[root root]#
-
+[root root]#
Verify that the controls work. You may want to tail -f /var/lib/aolserver/$OPENACS_SERVICE_NAME/log/$OPENACS_SERVICE_NAME-error.log
in another window, so you can see what happens when you type these
@@ -133,8 +130,8 @@