diff options
Diffstat (limited to 'rbldnsd-sync.install')
-rw-r--r-- | rbldnsd-sync.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/rbldnsd-sync.install b/rbldnsd-sync.install new file mode 100644 index 000000000000..4b60dd6b1eb0 --- /dev/null +++ b/rbldnsd-sync.install @@ -0,0 +1,20 @@ + +post_install() +{ + systemctl enable --now rbldnsd-sync.timer + echo "" + echo "Initialising DBLs" + echo "" + systemctl start rbldnsd-sync +} + +post_upgrade() +{ + systemctl daemon-reload +} + +pre_remove() +{ + systemctl disable --now rbldnsd-sync.timer +} + |