diff options
author | Jerry Alexandratos <jerry@gentoo.org> | 2001-07-11 21:21:05 +0000 |
---|---|---|
committer | Jerry Alexandratos <jerry@gentoo.org> | 2001-07-11 21:21:05 +0000 |
commit | 5dba55d9cf13e457cd1642b03e8281e08bdc24de (patch) | |
tree | 6c4dd0f678506e10f15c4fa43deaf4d246700b2e /app-admin/fcron | |
parent | After discovering that dcron has /usr/bin/vi hardcoded in as it's (diff) | |
download | historical-5dba55d9cf13e457cd1642b03e8281e08bdc24de.tar.gz historical-5dba55d9cf13e457cd1642b03e8281e08bdc24de.tar.bz2 historical-5dba55d9cf13e457cd1642b03e8281e08bdc24de.zip |
Start/Stop script for fcron.
Missed it in the previous commit.
Diffstat (limited to 'app-admin/fcron')
-rwxr-xr-x | app-admin/fcron/files/fcron | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app-admin/fcron/files/fcron b/app-admin/fcron/files/fcron new file mode 100755 index 000000000000..74442077d1a8 --- /dev/null +++ b/app-admin/fcron/files/fcron @@ -0,0 +1,29 @@ +#!/bin/sh +#RCUPDATE:2 3 4:80:This line is required for script management + +. /etc/rc.d/config/functions + +SERVICE=fcron +opts="start stop restart" + +PIDFILE=/var/run/fcron.pid +EXE=/usr/sbin/fcron + +start() { + ebegin "Starting $SERVICE..." + start-stop-daemon --start --quiet --exec $EXE + eend $? "Started $SERVICE." "Error Starting $SERVICE." +} + +stop() { + ebegin "Stopping $SERVICE..." + start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $EXE + eend $? "Stopped $SERVICE." "Error Stopping $SERVICE." +} + +restart() { + stop + start +} + +doservice ${@} |