File: wrapper-start

package info (click to toggle)
curvedns 0.87-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 4,092 kB
  • sloc: asm: 19,669; ansic: 11,982; sh: 1,104; cpp: 1,066; python: 107; makefile: 57
file content (11 lines) | stat: -rwxr-xr-x 522 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# we cannot pass the required environment options to the curvedns daemon using
# start-stop-daemon; instead we call this wrapper script which ensures that the
# environment variables required by the daemon are available before execing it
set -o allexport
[ -r /var/lib/curvedns/numeric_uid_gid ] && . /var/lib/curvedns/numeric_uid_gid
[ -r /etc/default/curvedns ] && . /etc/default/curvedns
[ -r /etc/curvedns/curvedns_private_key.hex ] && . /etc/curvedns/curvedns_private_key.hex
exec /usr/sbin/curvedns "$@"