Sh3ll
OdayForums


Server : Apache
System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
User : apache ( 48)
PHP Version : 8.0.28
Disable Function : NONE
Directory :  /Data/.backup/script/fcron-3.2.0/script/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //Data/.backup/script/fcron-3.2.0/script/fcron.sh
#!/bin/sh
# Start fcron at boot time under FreeBSD

SBIN=/usr/local/sbin
REBOOT_LOCK=/usr/local/var/run/fcron.reboot

case "$1" in
  start)
    $SBIN/fcron -b && echo -n " fcron"
    ;;
  stop)
    killall -TERM fcron
    if test \( "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "6" \) \
        -a -f "$REBOOT_LOCK" ; then
      # Make sure the lock file is deleted on reboot/shutdown
      # in case the OS doesn't do it itself
      rm -f "$REBOOT_LOCK"
    fi
    ;;
  *)
    echo "Usage: fcron start|stop"
    exit 1
    ;;
esac

ZeroDay Forums Mini