We're in 2006 now, toto
If we cannot find a service executable for an item and we make it to the bottom of stop_service() then simply killall service name
Do one command or the other
Correctly detect start script
Remove trailing newline
Use ps awux
MFC 7080 7084Minor cleanup and comment out old $ps code for the time being.Fix backwards comment.
Make sure service is stopped before starting
Ticket #590
is_process_running(): * grep -v grep * 2 -> 0
Add restart_service_if_running.
Comment cleanup
Various code cleanups and a few actual bugfixes courtesy of Zend
Add suggested fix for is_process_running(), which seems broken.
Whoops. Don't forget to merge.
Typos.
Make *_service less picky.
Revert is_service_running to rev 1.10.
Comment cleanups
add a comment that if you change this function, ill kill ya.
Really make is_process_running() work as it should for the frickin 5th time.
Make is_process_running() work as it should for the frickin 5th time.
Move the actual ps component of is_service_running into is_process_running.
ps a -> ps ax
We need to start services in the background to prevent blocking.
More fixes.
Fixes and updates.
Add is_service_running.
Add executable.
Clean up restart_service.
Add functions for starting, restarting, and stopping services.
Make sure we're writing to a realistic prefix ;)
Add service-utils.inc and write_rcfile.