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.2 -r1.3 --- openacs-4/packages/acs-core-docs/www/install-openacs-inittab.adp 7 Aug 2017 23:47:50 -0000 1.2 +++ openacs-4/packages/acs-core-docs/www/install-openacs-inittab.adp 25 Apr 2018 08:38:27 -0000 1.3 @@ -3,11 +3,11 @@ AOLserver keepalive with inittab -
+ leftLink="install-openacs-keepalive" leftLabel="Prev" + title="Chapter 6. Production +Environments" + rightLink="install-next-add-server" rightLabel="Next"> +

AOLserver keepalive with inittab

This is an alternative method for keeping the AOLserver process running. The recommended method is to run AOLserver @@ -36,8 +36,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 +49,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 +60,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,22 +75,20 @@ /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.

    - \ No newline at end of file + homeLink="index" homeLabel="Home" + upLink="maintenance-web" upLabel="Up"> + \ No newline at end of file