slitaz-tools rev 771
Remove etc/init.d/crond (provided by Busybox)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jun 01 14:09:21 2012 +0200 (2012-06-01) |
parents | 2f00591f2ce6 |
children | 0803ec7203da |
files | etc/init.d/crond |
line diff
1.1 --- a/etc/init.d/crond Fri Jun 01 14:05:55 2012 +0200 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,57 +0,0 @@ 1.4 -#!/bin/sh 1.5 -# /etc/init.d/crond: Start, stop and restart cron daemon on SliTaz, at boot 1.6 -# time or with the command line. 1.7 -# 1.8 -# To start daemon at boot time, just put the right name in the $RUN_DAEMONS 1.9 -# variable of /etc/rcS.conf and configure options with /etc/daemons.conf. 1.10 -# 1.11 -. /etc/init.d/rc.functions 1.12 -. /etc/daemons.conf 1.13 - 1.14 -NAME=Crond 1.15 -DESC="cron deamon" 1.16 -DAEMON=/usr/sbin/crond 1.17 -OPTIONS=$CROND_OPTIONS 1.18 -PIDFILE=/var/run/crond.pid 1.19 - 1.20 -case "$1" in 1.21 - start) 1.22 - if active_pidfile $PIDFILE crond ; then 1.23 - echo "$NAME already running." 1.24 - exit 1 1.25 - fi 1.26 - echo -n "Starting $DESC: $NAME... " 1.27 - $DAEMON $OPTIONS 1.28 - status 1.29 - ;; 1.30 - stop) 1.31 - if ! active_pidfile $PIDFILE crond ; then 1.32 - echo "$NAME is not running." 1.33 - exit 1 1.34 - fi 1.35 - echo -n "Stopping $DESC: $NAME... " 1.36 - kill `cat $PIDFILE` 1.37 - rm $PIDFILE 1.38 - status 1.39 - ;; 1.40 - restart) 1.41 - if ! active_pidfile $PIDFILE crond ; then 1.42 - echo "$NAME is not running." 1.43 - exit 1 1.44 - fi 1.45 - echo -n "Restarting $DESC: $NAME... " 1.46 - kill `cat $PIDFILE` 1.47 - rm $PIDFILE 1.48 - sleep 2 1.49 - $DAEMON $OPTIONS 1.50 - status 1.51 - ;; 1.52 - *) 1.53 - echo "" 1.54 - echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" 1.55 - echo "" 1.56 - exit 1 1.57 - ;; 1.58 -esac 1.59 - 1.60 -exit 0