]> git.stg.codes - stg.git/commitdiff
Оновлено init.d-файл для Gentoo
authorMaxim Mamontov <faust@gts.dp.ua>
Mon, 20 Dec 2010 15:47:44 +0000 (17:47 +0200)
committerMaxim Mamontov <faust@gts.dp.ua>
Mon, 20 Dec 2010 15:47:44 +0000 (17:47 +0200)
.gitignore
projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo [new file with mode: 0755]
projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo.2007 [deleted file]

index 2f1aec7b8d112d51ee361c4f795237aaa2bdc92e..5fc35256f8d4b6580798e2fa2c3c1efa6fd497a8 100644 (file)
@@ -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 (executable)
index 0000000..4f43ce8
--- /dev/null
@@ -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 (executable)
index daef60b..0000000
+++ /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 $?
-}