2 # -----------------------------------------------------
3 # Rakka's rc script for NetBSD
4 # -----------------------------------------------------
5 # Put this file into your /etc/rc.d/
6 # FreeBSD users should also be able to use this script.
7 # -----------------------------------------------------
16 command="/tmp/launch_rakka.$$"
17 procname="@RAKKA_BINDIR@/rakka"
18 pidfile="@RAKKA_LOCALSTATEDIR@/pid"
20 # Dirty hack: rakka can't daemonize itself because of Haskell's
21 # forkProcess limitation.
22 trap "unlink '$command'" EXIT
23 cat <<'EOF' >"$command"
25 @RAKKA_BINDIR@/rakka $@ &