|
Lines 22-27
Link Here
|
| 22 |
# See java -h for available arguments. |
22 |
# See java -h for available arguments. |
| 23 |
|
23 |
|
| 24 |
. %%RC_SUBR%% |
24 |
. %%RC_SUBR%% |
|
|
25 |
. /etc/rc.conf |
| 25 |
|
26 |
|
| 26 |
name="openfire" |
27 |
name="openfire" |
| 27 |
rcvar=${name}_enable |
28 |
rcvar=${name}_enable |
|
Lines 47-53
Link Here
|
| 47 |
if [ -f $pidfile ]; then |
48 |
if [ -f $pidfile ]; then |
| 48 |
read rc_pid junk < $pidfile |
49 |
read rc_pid junk < $pidfile |
| 49 |
if [ ! -z "$rc_pid" ]; then |
50 |
if [ ! -z "$rc_pid" ]; then |
| 50 |
procname=`ps -o command= $rc_pid | awk '{print $1 }'` |
51 |
procname=`ps -o command= $rc_pid | /usr/bin/awk '{print $1 }'` |
| 51 |
fi |
52 |
fi |
| 52 |
fi |
53 |
fi |
| 53 |
|
54 |
|
|
Lines 59-66
Link Here
|
| 59 |
load_rc_config $name |
60 |
load_rc_config $name |
| 60 |
|
61 |
|
| 61 |
openfire_precmd() { |
62 |
openfire_precmd() { |
| 62 |
touch ${pidfile} |
63 |
/usr/bin/touch ${pidfile} |
| 63 |
chown ${openfire_user}:${openfire_group} ${pidfile} |
64 |
/usr/sbin/chown ${openfire_user}:${openfire_group} ${pidfile} |
| 64 |
} |
65 |
} |
| 65 |
|
66 |
|
| 66 |
openfire_status() { |
67 |
openfire_status() { |