/etc/init.d/fetch-crl-boot is in fetch-crl 3.0.14-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | #! /bin/sh
### BEGIN INIT INFO
# Provides: fetch-crl-boot
# Required-Start: $remote_fs $syslog $network
# Required-Stop: $remote_fs $syslog
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Run fetch-crl on boot
# Description: This shell script enables a run of fetch-crl on boot
### END INIT INFO
# Author: Mattias Ellert <mattias.ellert@fysast.uu.se>
# source function library
. /lib/lsb/init-functions
# source any environment settings, e.g. for HTTP proxies
[ -f /etc/default/fetch-crl ] && . /etc/default/fetch-crl
lockfile=/var/lock/fetch-crl-boot
RETVAL=0
start() {
log_begin_msg "Running fetch-crl on boot can take a while:"
/usr/sbin/fetch-crl -q
RETVAL=$?
if [ $RETVAL -eq 0 ] ; then
touch $lockfile
log_success_msg
else
log_failure_msg
fi
}
stop() {
RETVAL=0
rm -f $lockfile
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|force-reload)
restart
;;
condrestart)
[ -f $lockfile ] && restart
;;
reload)
;;
status)
if [ -f $lockfile ] ; then
log_success_msg "fetch-crl-boot lockfile present"
RETVAL=0
else
log_success_msg "fetch-crl-boot lockfile not-present"
RETVAL=3
fi
;;
*)
echo "Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart}"
RETVAL=1
esac
exit $RETVAL
|