equal
deleted
inserted
replaced
|
1 #!/sbin/runscript |
|
2 # Copyright 1999-2010 Gentoo Foundation |
|
3 # Distributed under the terms of the GNU General Public License v2 |
|
4 # $Header: $ |
|
5 PIDFILE="/var/run/tinyrss.pid" |
|
6 |
|
7 depend() { |
|
8 need net |
|
9 } |
|
10 |
|
11 start() { |
|
12 ebegin "Starting tinyrss update daemon" |
|
13 start-stop-daemon --start --make-pidfile --background -c apache --pidfile "$PIDFILE" --chdir "$TTRSS_PATH" --exec /usr/bin/php -- \ |
|
14 "$TTRSS_PATH/$TTRSS_DAEMON" |
|
15 eend $? |
|
16 } |
|
17 |
|
18 stop() { |
|
19 ebegin "Stopping tinyrss update daemon" |
|
20 start-stop-daemon --quiet --stop --pidfile $PIDFILE |
|
21 eend $? |
|
22 |
|
23 } |