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.6 -r1.3.2.7 --- openacs-4/packages/acs-core-docs/www/install-openacs-inittab.adp 13 Jul 2023 12:43:20 -0000 1.3.2.6 +++ openacs-4/packages/acs-core-docs/www/install-openacs-inittab.adp 2 Sep 2024 09:40:22 -0000 1.3.2.7 @@ -2,10 +2,14 @@ {/doc/acs-core-docs/ {ACS Core Documentation}} {AOLserver keepalive with inittab} AOLserver keepalive with inittab +

@@ -36,8 +40,7 @@ [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 @@ -50,8 +53,7 @@ [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 @@ -62,14 +64,12 @@ 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 @@ -79,13 +79,11 @@ /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.