summarylogtreecommitdiffstats
path: root/zsnapd.install
diff options
context:
space:
mode:
authorgenofire2020-09-21 09:44:10 +0200
committergenofire2020-09-21 09:44:10 +0200
commitb4dfe84dbbda4a2ce46d3ff263a266aadede7475 (patch)
tree3f3656aaa28afb9ef70911e7f9ed55ab8e402a38 /zsnapd.install
downloadaur-b4dfe84dbbda4a2ce46d3ff263a266aadede7475.tar.gz
Init
Diffstat (limited to 'zsnapd.install')
-rw-r--r--zsnapd.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/zsnapd.install b/zsnapd.install
new file mode 100644
index 000000000000..f1dc1a978a83
--- /dev/null
+++ b/zsnapd.install
@@ -0,0 +1,16 @@
+post_install() {
+ systemctl daemon-reload
+}
+
+post_upgrade() {
+ systemctl daemon-reload
+ systemctl restart zsnapd
+}
+
+pre_remove() {
+ systemctl disable zsnapd
+}
+
+post_remove() {
+ systemctl daemon-reload
+}