Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- ### BEGIN INIT INFO
- # Provides: tinytinyrss
- # Required-Start: $syslog $time $remote_fs
- # Required-Stop: $syslog $time $remote_fs
- # Default-Start: 2 3 4 5
- # Default-Stop: 0 1 6
- # Short-Description: Tiny Tiny Rss
- # Description: Debian init script for the Tiny Tiny RSS update
- # scheduler
- ### END INIT INFO
- #
- PATH=/bin:/usr/bin:/sbin:/usr/sbin
- DAEMON="/home/arran/public_html/reader/update_daemon2.php"
- DAEMONDIR=/home/arran/public_html/reader/
- PIDFILE=/var/run/tinytinyrss.pid
- test -x $DAEMON || exit 0
- . /lib/lsb/init-functions
- case "$1" in
- start)
- log_daemon_msg "Starting SCM Manager" "tinytinyrss"
- start-stop-daemon --start -p $PIDFILE --group arran --chdir $DAEMONDIR -b --chuid arran --make-pidfile --exec $DAEMON
- log_end_msg $?
- ;;
- stop)
- log_daemon_msg "Stopping SCM Manager" "tinytinyrss"
- #killproc -p $PIDFILE $DAEMON
- start-stop-daemon --stop -p $PIDFILE -retry 10000
- log_end_msg $?
- ;;
- force-reload|restart)
- $0 stop
- $0 start
- ;;
- status)
- status_of_proc -p $PIDFILE $DAEMON tinytinyrss && exit 0 || exit $?
- ;;
- *)
- echo "Usage: /etc/init.d/atd {start|stop|restart|force-reload|status}"
- exit 1
- ;;
- esac
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement