/etc/init.d/isakmpd is in isakmpd 20041012-7.2ubuntu2.
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 | #!/bin/sh
#
### BEGIN INIT INFO
# Provides: isakmpd
# Required-Start: $remote_fs $network $syslog
# Required-Stop: $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Internet Key Exchange protocol daemon from OpenBSD
### END INIT INFO
PATH=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/sbin/isakmpd
PIDFILE=/var/run/isakmpd.pid
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions
test -f $DAEMON || exit 0
case "$1" in
start)
echo -n "Starting OpenBSD isakmpd: "
start-stop-daemon --start --verbose --pidfile $PIDFILE --exec $DAEMON > /dev/null 2>&1
echo "done"
;;
stop)
echo -n "Stopping OpenBSD isakmpd: "
start-stop-daemon --stop --verbose --pidfile $PIDFILE --exec $DAEMON > /dev/null 2>&1
echo "done"
;;
restart|force-reload)
echo -n "Restarting OpenBSD isakmpd: "
start-stop-daemon --stop --verbose --pidfile $PIDFILE --exec $DAEMON > /dev/null 2>&1
start-stop-daemon --start --verbose --pidfile $PIDFILE --exec $DAEMON > /dev/null 2>&1
echo "done"
;;
status)
ret=0
status_of_proc -p ${PIDFILE} ${DAEMON} isakmpd 2>/dev/null || ret=$?
;;
*)
echo "Usage: /etc/init.d/isakmpd {start|stop|restart|force-reload|status}"
exit 1
;;
esac
exit 0
|