91faa22c52
parameter to daemonize, move the parameter from daemon to daemon_flags, so that the user cannot inadvertently prevent it from daemonizing by adjusting the flags. Discussed with ajacoutot and schwarze, this method was suggested by schwarze@ as a simpler alternative to my diff. ok aja@
16 lines
219 B
Bash
Executable File
16 lines
219 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $OpenBSD: slim.rc,v 1.3 2011/12/17 22:01:14 sthen Exp $
|
|
|
|
daemon="${TRUEPREFIX}/bin/slim -d"
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
rc_reload=NO
|
|
|
|
rc_start() {
|
|
(sleep 5; ${rcexec} "${daemon} ${daemon_flags}")&
|
|
}
|
|
|
|
rc_cmd $1
|