summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/isso/files/isso.initd')
-rw-r--r--www-apps/isso/files/isso.initd33
1 files changed, 33 insertions, 0 deletions
diff --git a/www-apps/isso/files/isso.initd b/www-apps/isso/files/isso.initd
new file mode 100644
index 0000000..2b0b858
--- /dev/null
+++ b/www-apps/isso/files/isso.initd
@@ -0,0 +1,33 @@
+#!/sbin/openrc-run
+# By eroen, 2014
+#
+# Permission to use, copy, modify, and/or distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+
+ISSO_CONF=${ISSO_CONF:-"/etc/${RC_SVCNAME}.conf"}
+ISSO_LOG=${ISSO_LOG:-"/var/log/${RC_SVCNAME}.log"}
+ISSO_USER=${ISSO_USER:-"${RC_SVCNAME%%.*}:${RC_SVCNAME%%.*}"}
+
+description="lightweight Disqus alternative"
+start_stop_daemon_args="--user ${ISSO_USER} --stderr ${ISSO_LOG}"
+command=/usr/bin/${RC_SVCNAME%%.*}
+command_args="-c ${ISSO_CONF} run"
+command_background=true
+pidfile="/var/run/${RC_SVCNAME}.pid"
+required_files="${ISSO_CONF}"
+
+depend() {
+ need localmount
+ after bootmisc
+
+ use mta
+ after net apache lighttpd nginx
+}
+
+start_pre() {
+ checkpath -f -o "${ISSO_USER}" "${ISSO_LOG}"
+ checkpath -W "${ISSO_LOG}"
+}
+
+# vim: set ft=gentoo-init-d