Skip to content

Commit

Permalink
Added init script working on Debian Jessie, just copy the file to
Browse files Browse the repository at this point in the history
/etc/init.d/ndppd. Probably works on current stable as well, but
I couldn't test this so far.
  • Loading branch information
root committed Oct 20, 2018
1 parent 13473e5 commit caef398
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ndppd-init-debian-jessi
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh
# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi

### BEGIN INIT INFO
# Provides: ndppd
# Required-Start: $remote_fs $syslog $network
# Required-Stop: $remote_fs $syslog $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: ndppd init script
# Description: NDP Proxy Daemon init script
### END INIT INFO
# Author: Torben Nehmer <torben+ndppd@nehmer.net>

DESC="NDP Proxy Daemon"
PIDFILE=/run/ndppd.pid
DAEMON=/usr/local/sbin/ndppd
DAEMON_ARGS="-d -p $PIDFILE"

1 comment on commit caef398

@nirgal
Copy link
Contributor

@nirgal nirgal commented on caef398 Oct 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not working. You are probably missing the end of the file!

The official Debian init file is at
https://salsa.debian.org/debian/ndppd/blob/debian/sid/debian/init.d
it was taken from the old debian branch of ndppd:
https://github.com/DanielAdolfsson/ndppd/blob/debian/debian/init.d

I suggest you revert this commit

Please sign in to comment.