Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
     5         kx #!/bin/sh
     5         kx # /etc/rc.d/rc.crond - start/stop the cron daemon
     5         kx 
     5         kx # To change the default options, edit /etc/default/crond.
     5         kx if [ -r /etc/default/crond ]; then
     5         kx   . /etc/default/crond
     5         kx fi
     5         kx 
     5         kx start_crond() {
     5         kx   if ! /usr/bin/pgrep --ns $$ --euid root -f "^/usr/sbin/crond" 1> /dev/null 2> /dev/null ; then
     5         kx     echo "Starting crond:  /usr/sbin/crond $CROND_OPTS"
     5         kx     mkdir -p /run/cron
     5         kx     /usr/sbin/crond $CROND_OPTS
     5         kx   fi
     5         kx }
     5         kx 
     5         kx stop_crond() {
     5         kx   echo "Stopping crond."
     5         kx   /usr/bin/pkill --ns $$ --euid root -f "^/usr/sbin/crond" 2> /dev/null 
     5         kx }
     5         kx 
     5         kx restart_crond() {
     5         kx   stop_crond
     5         kx   sleep 1
     5         kx   start_crond
     5         kx }
     5         kx 
     5         kx case "$1" in
     5         kx 'start')
     5         kx   start_crond
     5         kx   ;;
     5         kx 'stop')
     5         kx   stop_crond
     5         kx   ;;
     5         kx 'restart')
     5         kx   restart_crond
     5         kx   ;;
     5         kx *)
     5         kx   echo "usage $0 start|stop|restart"
     5         kx esac