diff options
author | Donny Davies <woodchip@gentoo.org> | 2001-09-04 00:19:53 +0000 |
---|---|---|
committer | Donny Davies <woodchip@gentoo.org> | 2001-09-04 00:19:53 +0000 |
commit | 5ca846c20072f277b5dbdb8ec68cf70b5535e2f4 (patch) | |
tree | 25e6063889efbb27c730a740e1688985ddf2dfc1 /app-admin | |
parent | vnc ebuild needs some love... but at least now it actually compiles (for me a... (diff) | |
download | gentoo-2-5ca846c20072f277b5dbdb8ec68cf70b5535e2f4.tar.gz gentoo-2-5ca846c20072f277b5dbdb8ec68cf70b5535e2f4.tar.bz2 gentoo-2-5ca846c20072f277b5dbdb8ec68cf70b5535e2f4.zip |
inserted checkconfig() function into fcron initscript
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/fcron/files/fcron.rc6 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app-admin/fcron/files/fcron.rc6 b/app-admin/fcron/files/fcron.rc6 index 8160c54b1f83..ff806806b6a0 100644 --- a/app-admin/fcron/files/fcron.rc6 +++ b/app-admin/fcron/files/fcron.rc6 @@ -4,7 +4,16 @@ depend() { need clock } +checkconfig() { + if [ ! -e /etc/fcron/fcon.conf ] ; then + eerror "You will need an /etc/fcron/fcron.conf first" + eerror "There is a sample in /usr/share/docs/fcron" + return 1 + fi +} + start() { + checkconfig || return 1 ebegin "Starting fcron" start-stop-daemon --start --quiet --exec /usr/sbin/fcron eend $? |