aboutsummaryrefslogtreecommitdiffstats
path: root/testing/postfwd/postfwd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/postfwd/postfwd.initd')
-rw-r--r--testing/postfwd/postfwd.initd23
1 files changed, 12 insertions, 11 deletions
diff --git a/testing/postfwd/postfwd.initd b/testing/postfwd/postfwd.initd
index 81d8613a17..80721b81ab 100644
--- a/testing/postfwd/postfwd.initd
+++ b/testing/postfwd/postfwd.initd
@@ -1,18 +1,19 @@
#!/sbin/openrc-run
+supervisor=supervise-daemon
-command="/usr/sbin/postfwd"
-pidfile="/run/postfwd.pid"
+name=postfwd
+description="Postfix firewall daemon"
+
+command=/usr/sbin/postfwd
command_args="--file ${POSTFWD_CONFIG}
---interface=${POSTFWD_LISTEN}
---port=${POSTFWD_PORT}
---user=${POSTFWD_USER}
---group=${POSTFWD_GROUP}
---pidfile ${pidfile}
-${POSTFWD_OPTS}
-"
-command_args_background="--daemon"
+ --interface=${POSTFWD_LISTEN}
+ --port=${POSTFWD_PORT}
+ --user=${POSTFWD_USER}
+ --group=${POSTFWD_GROUP}
+ ${POSTFWD_OPTS}
+ "
+command_args_foreground="--nodaemon"
depend() {
need net
}
-