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