20 lines
313 B
Bash
20 lines
313 B
Bash
#!/bin/sh
|
|
#
|
|
# $OpenBSD: tt_rss_update.rc,v 1.3 2012/05/03 18:45:39 landry Exp $
|
|
|
|
daemon="${INSTDIR}/update.php -daemon"
|
|
daemon_user="www"
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
pexp="${MODPHP_BIN} ${daemon}${daemon_flags:+ ${daemon_flags}}"
|
|
|
|
rc_bg=YES
|
|
rc_reload=NO
|
|
|
|
rc_post() {
|
|
rm ${INSTDIR}/lock/update_daemon.lock
|
|
}
|
|
|
|
rc_cmd $1
|