Sha256: f0c88981dcffda5303ee0289b73c0bd4032950b852a0ea6e9b870d3550378fdb
Contents?: true
Size: 1.1 KB
Versions: 13
Compression:
Stored size: 1.1 KB
Contents
#!/bin/sh ### BEGIN INIT INFO # Provides: oneacct-export-cron # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Enable hourly run of oneacct-export # Description: This shell script enables the automatic use of oneacct-export ### END INIT INFO lockfile="/var/lock/oneacct-export-cron" retval=0 name=`basename $0` start() { touch $lockfile echo "Enabling periodic $name" retval=0 } stop() { rm -f $lockfile echo "Disabling periodic $name" retval=0 } restart() { stop start } case "$1" in start) start ;; stop) stop ;; restart|force-reload) restart ;; reload) ;; condrestart) [ -f "$lockfile" ] && restart ;; status) if [ -f "$lockfile" ] ; then echo "Periodic $name is enabled" retval=0 else echo "Periodic $name is disabled" retval=3 fi ;; *) echo "Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart}" retval=1 esac exit $retval
Version data entries
13 entries across 13 versions & 1 rubygems