diff options
author | Arthur Vuillard | 2016-09-15 23:59:48 +0200 |
---|---|---|
committer | Arthur Vuillard | 2016-09-15 23:59:48 +0200 |
commit | 6d9fa3a8a6e9082f15117230aae55db75000ce08 (patch) | |
tree | 3396a76261dd5902c1779227185063e71d17ebad /watchghost.install | |
parent | 1bedd59b93148eb54783ff85aa28d2e81c157ab0 (diff) | |
download | aur-6d9fa3a8a6e9082f15117230aae55db75000ce08.tar.gz |
install as a service
Diffstat (limited to 'watchghost.install')
-rw-r--r-- | watchghost.install | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/watchghost.install b/watchghost.install new file mode 100644 index 000000000000..f03d211ce3d3 --- /dev/null +++ b/watchghost.install @@ -0,0 +1,19 @@ +post_install() { + systemd-sysusers watchghost.conf + systemctl daemon-reload +} + +post_upgrade() { + systemd-sysusers watchghost.conf + systemctl daemon-reload +} + +pre_remove() { + systemctl stop watchghost.service; + systemctl disable watchghost.service; +} + +post_remove() { + systemctl daemon-reload +} + |