Tried v1.0.2 and 1.0.3, /etc/init.d/octopussy stop or restart does not stop the web server. The Web_Stop() is not working. Replaced with the actual code from the function and works fine. Listing the process shows the UID not the actual name of octopussy, not sure if this is a result of using sudo -u .
# ps -ef | grep octo
root 16219 1 0 19:00 pts/9 00:00:00 sudo -u octopussy /usr/sbin/octo_dispatcher
479 16224 16219 0 19:00 pts/9 00:00:00 /usr/bin/perl -w /usr/sbin/octo_dispatcher
root 16441 1 0 19:00 pts/9 00:00:00 sudo -u octopussy /usr/sbin/octo_parser dlbackup
root 16444 1 0 19:00 pts/9 00:00:00 sudo -u octopussy /usr/sbin/octo_parser mail
root 16446 1 0 19:00 pts/9 00:00:00 sudo -u octopussy /usr/sbin/octo_parser rhel6
479 16448 16441 0 19:00 pts/9 00:00:00 /usr/bin/perl -w /usr/sbin/octo_parser dlbackup
479 16449 16444 0 19:00 pts/9 00:00:00 /usr/bin/perl -w /usr/sbin/octo_parser mail
root 16450 1 0 19:00 pts/9 00:00:00 sudo -u octopussy nice -n 15 /usr/sbin/octo_rrd
479 16452 16446 0 19:00 pts/9 00:00:00 /usr/bin/perl -w /usr/sbin/octo_parser rhel6
479 16455 16450 0 19:00 pts/9 00:00:00 /usr/bin/perl -w /usr/sbin/octo_rrd
root 16456 1 0 19:00 pts/9 00:00:00 sudo -u octopussy nice -n 10 /usr/sbin/octo_scheduler
479 16457 16456 0 19:00 pts/9 00:00:00 /usr/bin/perl -w /usr/sbin/octo_scheduler
root 16460 1 0 19:00 pts/9 00:00:00 sudo -u octopussy nice -n 10 /usr/sbin/octo_sender
root 16463 1 0 19:00 pts/9 00:00:00 sudo -u octopussy nice -n 10 /usr/sbin/octo_pusher
root 16466 1 0 19:00 pts/9 00:00:00 sudo -u octopussy /usr/sbin/octo_commander
479 16467 16460 0 19:00 pts/9 00:00:00 /usr/bin/perl -w /usr/sbin/octo_sender
479 16470 16463 0 19:00 pts/9 00:00:00 /usr/bin/perl -w /usr/sbin/octo_pusher
479 16471 16466 0 19:00 pts/9 00:00:00 /usr/bin/perl -w /usr/sbin/octo_commander
root 16473 1 0 19:00 ? 00:00:00 /usr/sbin/httpd -f /etc/octopussy/apache2.conf -k start
479 16476 16473 0 19:00 ? 00:00:00 /usr/sbin/httpd -f /etc/octopussy/apache2.conf -k start
479 16477 16473 0 19:00 ? 00:00:00 /usr/sbin/httpd -f /etc/octopussy/apache2.conf -k start
479 16478 16473 0 19:00 ? 00:00:00 /usr/sbin/httpd -f /etc/octopussy/apache2.conf -k start
479 16479 16473 0 19:00 ? 00:00:00 /usr/sbin/httpd -f /etc/octopussy/apache2.conf -k start
479 16480 16473 0 19:00 ? 00:00:00 /usr/sbin/httpd -f /etc/octopussy/apache2.conf -k start
479 16666 16473 0 19:00 ? 00:00:00 /usr/sbin/httpd -f /etc/octopussy/apache2.conf -k start
After stop run
Name "Win32::Locale::Lexicon" used only once: possible typo at /usr/share/perl5/I18N/LangTags/Detect.pm line 140.
octopussy Web Stopped.
octopussy Commander Stopped.
octopussy Parsing 'dlbackup' Paused.
octopussy Parsing 'mail' Paused.
octopussy Parsing 'rhel6' Paused.
octopussy RRD Stopped.
octopussy Scheduler Stopped.
octopussy Sender Stopped.
octopussy Pusher Stopped.
octopussy Dispatcher Stopped.
# ps -ef | grep octo
root 16473 1 0 19:00 ? 00:00:00 /usr/sbin/httpd -f /etc/octopussy/apache2.conf -k start
479 16476 16473 0 19:00 ? 00:00:00 /usr/sbin/httpd -f /etc/octopussy/apache2.conf -k start
479 16477 16473 0 19:00 ? 00:00:00 /usr/sbin/httpd -f /etc/octopussy/apache2.conf -k start
479 16478 16473 0 19:00 ? 00:00:00 /usr/sbin/httpd -f /etc/octopussy/apache2.conf -k start
479 16479 16473 0 19:00 ? 00:00:00 /usr/sbin/httpd -f /etc/octopussy/apache2.conf -k start
479 16480 16473 0 19:00 ? 00:00:00 /usr/sbin/httpd -f /etc/octopussy/apache2.conf -k start
479 16666 16473 0 19:00 ? 00:00:00 /usr/sbin/httpd -f /etc/octopussy/apache2.conf -k start
v1.0.2 also did not stop dispatcher but fixed in 1.0.3