You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
433 B
Bash
24 lines
433 B
Bash
#! /bin/sh
|
|
|
|
fileprocess=/usr/sbin/fileprocess
|
|
|
|
test -x "$fileprocess" || exit 0
|
|
|
|
case "$1" in
|
|
start)
|
|
echo -n "Starting fileprocess daemon"
|
|
start-stop-daemon --start --background --exec $fileprocess
|
|
echo "."
|
|
;;
|
|
stop)
|
|
echo -n "Stopping fileprocess daemon"
|
|
start-stop-daemon --stop --name fileprocess
|
|
echo "."
|
|
;;
|
|
*)
|
|
echo "Usage: /etc/init.d/S91fileprocess {start|stop}"
|
|
exit 1
|
|
esac
|
|
|
|
exit 0
|