-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rc script taken from the 1.8 update diff sent to ports@ by sthen@.
sthen@ ok.
- Loading branch information
Federico G. Schwindt
committed
Jan 4, 2011
1 parent
86bedca
commit 8117267
Showing
4 changed files
with
22 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,2 @@ | ||
Simplified sample configuration is provided in ${SYSCONFDIR}/asterisk; | ||
the full set is available in ${PREFIX}/share/examples/asterisk/default. | ||
|
||
To have Asterisk start at boot time, you may insert the following | ||
into /etc/rc.local: | ||
|
||
if [ -x ${PREFIX}/sbin/safe_asterisk ]; then | ||
echo -n ' asterisk'; ${PREFIX}/sbin/safe_asterisk | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
# | ||
# $OpenBSD: asterisk.rc,v 1.1 2011/01/04 22:35:47 fgsch Exp $ | ||
|
||
daemon="${TRUEPREFIX}/sbin/asterisk" | ||
|
||
. /etc/rc.d/rc.subr | ||
|
||
rc_start() { | ||
${TRUEPREFIX}/sbin/safe_asterisk > /dev/null | ||
} | ||
|
||
rc_stop() { | ||
${daemon} -rx "core stop now" | ||
} | ||
|
||
rc_cmd $1 |