Index: openacs-4/packages/acs-core-docs/www/install-openacs-inittab.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/install-openacs-inittab.adp,v diff -u -r1.3.2.5 -r1.3.2.6 --- openacs-4/packages/acs-core-docs/www/install-openacs-inittab.adp 27 Apr 2022 16:52:20 -0000 1.3.2.5 +++ openacs-4/packages/acs-core-docs/www/install-openacs-inittab.adp 13 Jul 2023 12:43:20 -0000 1.3.2.6 @@ -1,11 +1,11 @@ -{/doc/acs-core-docs {ACS Core Documentation}} {AOLserver keepalive with inittab} +{/doc/acs-core-docs/ {ACS Core Documentation}} {AOLserver keepalive with inittab} AOLserver keepalive with inittab

@@ -36,7 +36,8 @@ [root ~]# chown root.web /usr/local/bin/restart-aolserver [root ~]# chmod 4750 /usr/local/bin/restart-aolserver [root ~]# ln -s /usr/bin/perl /usr/local/bin/perl -[root ~]# exit +[root ~]# exit +
  • Test the restart-aolserver script. We'll first kill all running servers to clean the @@ -49,7 +50,8 @@ [joeuser ~]$ restart-aolserver birdnotes Killing 23727 [joeuser ~]$ killall nsd -nsd: no process killed

    The number 23727 indicates the process id(s) (PIDs) of the +nsd: no process killed +

    The number 23727 indicates the process id(s) (PIDs) of the processes being killed. It is important that no processes are killed by the second call to killall. If there are processes being killed, it means that the script is not @@ -60,12 +62,14 @@ editing.

     [joeuser ~]$ su -
     Password: ************
    -[root ~]# emacs -nw /etc/inittab
    +[root ~]# emacs -nw /etc/inittab +
  • Copy this line into the bottom of the file as a template, making sure that the first field nss1 is unique.

    -nss1:345:respawn:/usr/local/aolserver/bin/nsd-postgres -i -u nobody -g web -t /home/joeuser/var/lib/aolserver/birdnotes/nsd.tcl
    +nss1:345:respawn:/usr/local/aolserver/bin/nsd-postgres -i -u nobody -g web -t /home/joeuser/var/lib/aolserver/birdnotes/nsd.tcl +
  • Important: Make sure there is a newline at the end of the file. If there is not a @@ -75,11 +79,13 @@ /etc/inittab.

     [root ~]# killall nsd    
     nsd: no process killed
    -[root ~]# /sbin/init q
    +[root ~]# /sbin/init q +
  • See if it worked by running the restart-aolserver script again.

     [root ~]# restart-aolserver birdnotes
    -Killing 23750
    +Killing 23750 +
  • If processes were killed, congratulations, your server is now automated for startup and shutdown.