blob: f30761d7014c0484d05c2a34a688de39afc7031c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
post_install(){
echo "=========================="
echo "Run 'systemd daemon-reload' first"
echo ""
echo "Systemd service can be enabled via command:"
echo ""
echo "systemctl enable libaxon@USERNAME.service"
echo ""
echo "Systemd service can be start via command:"
echo ""
echo "systemctl start libaxon@USERNAME.service"
echo ""
}
post_upgrade(){
echo "=========================="
echo "Restate service via commmand:"
echo ""
echo "systemctl daemon-reload && systemctl restart libaxon.service"
}
pre_remove(){
echo "Stop systemd service..."
systemctl stop libaxon@${whoami}.serivce
}
post_remove(){
echo "==> Restate systemd service via command: "
echo "==> systemctl daemon-reload"
}
|