Update DEB install scripts to use systemd scriptlets
This commit is contained in:
parent
06d9cdf7e7
commit
9a1fbe8bee
4 changed files with 41 additions and 23 deletions
|
|
@ -1,10 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Stop and disable the service before removing
|
||||
systemctl stop rpxy || true
|
||||
systemctl disable rpxy || true
|
||||
systemctl daemon-reload
|
||||
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
|
||||
deb-systemd-invoke stop rpxy.service >/dev/null || true
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue