Ja jsem tiny v gentoo nenasel, takze jsem si poresil init script takhle
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
provide rss-update
}
start() {
ebegin "Starting ${SVCNAME}"
start-stop-daemon --start --quiet \
--pidfile /var/run/${SVCNAME}.pid -u <user> --exec /var/www/<addr>/rss-update
eend $?
}
stop() {
ebegin "Stopping ${SVCNAME}"
start-stop-daemon --stop --quiet \
--pidfile /var/run/${SVCNAME}.pid --exec /var/www/<addr>/rss-update
local ret=$?
rm -f "/var/run/${SVCNAME}.pid"
eend ${ret}
}
a v rrs-updte uz jen
#!/bin/sh
/usr/bin/php /var/www/<addr>/public_html/update.php -daemon
a musim rict ze jsem velice spokojen;)