3 # autopsy This shell script takes care of starting and stopping
4 # Autopsy (The Sleuth Kit web interface).
7 # description: Autopsy is a web interface for The Sleuth Kit
9 # Source function library.
10 . /etc/rc.d/init.d/functions
12 # Source networking configuration.
13 . /etc/sysconfig/network
15 # Check that networking is up.
16 if is_yes "${NETWORKING}"; then
17 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
18 msg_network_down autopsy
27 # Check if the service is already running?
28 if [ ! -f /var/lock/subsys/autopsy ]; then
30 daemon --user autopsy --fork --waitfortime 1 /usr/bin/autopsy
32 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/autopsy
34 msg_already_running autopsy
39 if [ -f /var/lock/subsys/autopsy ]; then
42 rm -f /var/lock/subsys/autopsy
44 msg_not_running autopsy
49 if [ -f /var/lock/subsys/autopsy ]; then
53 msg_not_running autopsy
59 # See how we were called.
71 try-restart|condrestart)
82 msg_usage "$0 {start|stop|restart|try-restart|force-reload|condrestart|status}"