Anonymous
public text v1 · immutable#! /bin/sh
# /etc/init.d/blah
#
# Cargar funciones de LSB
. /lib/lsb/init-functions
# Some things that run always
touch /var/lock/blah
# Carry out specific functions when asked to by the system
case "$1" in
start)
log_begin_msg "Starting script blah... "
/usr/local/bin/blah && log_end_msg 0 || log_end_msg 1
;;
stop)
lob_begin_msg "Stopping script blah... "
killall blah && log_end_msg 0 || log_end_msg 1
;;
*)
echo "Usage: /etc/init.d/blah {start|stop}"
exit 1
;;
esac
exit 0