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 -N -r1.4.2.8 -r1.4.2.9 --- openacs-4/packages/acs-core-docs/www/install-openacs-keepalive.adp 27 Apr 2022 16:52:20 -0000 1.4.2.8 +++ openacs-4/packages/acs-core-docs/www/install-openacs-keepalive.adp 13 Jul 2023 12:43:20 -0000 1.4.2.9 @@ -1,11 +1,11 @@ -{/doc/acs-core-docs {ACS Core Documentation}} {Starting and Stopping an OpenACS instance.} +{/doc/acs-core-docs/ {ACS Core Documentation}} {Starting and Stopping an OpenACS instance.} Starting and Stopping an OpenACS instance.

@@ -48,16 +48,19 @@ 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 @@ -87,25 +90,29 @@ 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 commands.

    More information can be found on the AOLserver Daemontools page.

  • -

    Table 6.1. How it +

    Table 6.1. How it Works

    @@ -126,8 +133,8 @@