summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mail-filter/policyd-weight/files/policyd-weight.init.d-r2')
-rw-r--r--mail-filter/policyd-weight/files/policyd-weight.init.d-r231
1 files changed, 31 insertions, 0 deletions
diff --git a/mail-filter/policyd-weight/files/policyd-weight.init.d-r2 b/mail-filter/policyd-weight/files/policyd-weight.init.d-r2
new file mode 100644
index 00000000000..390bc3d2892
--- /dev/null
+++ b/mail-filter/policyd-weight/files/policyd-weight.init.d-r2
@@ -0,0 +1,31 @@
+#!/sbin/openrc-run
+
+extra_started_commands="reload"
+
+daemon="policyd-weight"
+exec="/usr/libexec/postfix/policyd-weight"
+
+pidfile=/run/policyd-weight.pid
+
+depend(){
+ before postfix
+ use net
+}
+
+start(){
+ ebegin "Starting ${daemon}"
+ ${exec} start
+ eend $?
+}
+
+stop(){
+ ebegin "Stopping ${daemon}"
+ ${exec} -k stop
+ eend $?
+}
+
+reload(){
+ ebegin "Reloading ${daemon}"
+ ${exec} reload
+ eend $?
+}