Index: openacs-4/packages/acs-core-docs/www/install-openacs-keepalive.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/install-openacs-keepalive.adp,v diff -u -r1.4.2.10 -r1.4.2.11 --- openacs-4/packages/acs-core-docs/www/install-openacs-keepalive.adp 1 Aug 2024 08:03:40 -0000 1.4.2.10 +++ openacs-4/packages/acs-core-docs/www/install-openacs-keepalive.adp 2 Sep 2024 09:40:22 -0000 1.4.2.11 @@ -2,10 +2,14 @@ {/doc/acs-core-docs/ {ACS Core Documentation}} {Starting and Stopping an OpenACS instance.} Starting and Stopping an OpenACS instance. +

@@ -48,19 +52,16 @@ into the /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]# 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]#
-
+[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]# 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]#
    -
    +[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 @@