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.