From: Maxim Mamontov Date: Mon, 20 Dec 2010 15:47:44 +0000 (+0200) Subject: Оновлено init.d-файл для Gentoo X-Git-Tag: 2.407-rc3~224 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/6ab0ce51a63441ab865e75fd631e4f363067d58e?ds=sidebyside;hp=05e788d7f5054a25d82e2824f6daf661d0cab38e Оновлено init.d-файл для Gentoo --- diff --git a/.gitignore b/.gitignore index 2f1aec7b..5fc35256 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ *.[ao] -*.d +#*.d *.so *.swp *.log diff --git a/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo b/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo new file mode 100755 index 00000000..4f43ce8b --- /dev/null +++ b/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo @@ -0,0 +1,33 @@ +#!/sbin/runscript + +opts="reload" + +DAEMON=/usr/sbin/stargazer +STARGAZER_OPTS="" +PIDFILE=/var/run/stargazer.pid + +depend() { + need net + use postgresql firebird mysql + provide stargazer +} + +start() { + ebegin "Starting stargazer" + start-stop-daemon --start --quiet --exec ${DAEMON} -- ${STARGAZER_OPTS} + eend $? +} + +stop() { + ebegin "Stopping stargazer" + start-stop-daemon --stop --quiet --pidfile ${PIDFILE} --retry=INT/120/KILL/5 + rm -f ${PIDFILE} + eend $? +} + +reload() { + ebegin "Reloading stargazer rules" + start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE + return 0 + eend $? +} diff --git a/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo.2007 b/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo.2007 deleted file mode 100755 index daef60b5..00000000 --- a/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo.2007 +++ /dev/null @@ -1,31 +0,0 @@ -#!/sbin/runscript - -opts="reload" - -DAEMON=/usr/sbin/stargazer -STARGAZER_OPTS="" -PIDFILE=/var/run/stargazer.pid - -depend() { - need net -} - -start() { - ebegin "Starting stargazer" - start-stop-daemon --start --quiet --exec ${DAEMON} -- ${STARGAZER_OPTS} - eend $? -} - -stop() { - ebegin "Stopping stargazer" - start-stop-daemon --stop --quiet --pidfile ${PIDFILE} --retry=INT/60/KILL/5 - rm -f ${PIDFILE} - eend $? -} - -reload() { - ebegin "Reloading stargazer rules" - start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE - return 0 - eend $? -}