~ salmonella-environment-setup (master) /awful/init-scripts/freebsd


 1#! /bin/sh
 2#
 3
 4# PROVIDE: awful
 5# REQUIRE: DAEMON
 6# KEYWORD: shutdown
 7
 8#
 9# Add the following lines to /etc/rc.conf to enable awful:
10#
11#awful_enable="YES"
12
13. /etc/rc.subr
14
15name="awful"
16rcvar="awful_enable"
17
18load_rc_config $name
19
20# Privileges are dropped in the wrapper-script
21#: ${awful_user:=awful}
22#: ${awful_group:=awful}
23: ${awful_enable:=NO}
24
25procname="awful"
26logfile="/var/log/awful/init.log"
27# Unfortunately, pidfile handling of rc.subr doesn't seem to work...
28pidfile="/var/run/awful.pid"
29
30#... so we have to work with a wrapper script
31command="/home/chicken/bin/awful-wrapper"
32command_args="${pidfile} ${logfile}"
33
34
35run_rc_command "$1"
Trap