Skip to content

Commit

Permalink
adjusting systemd requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsonLazarin committed Jul 1, 2024
1 parent 4ba6a4f commit 1f5006b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: chonos-task
Version: 1.1.1
Version: 1.1.2
Priority:
Architecture: all
Essential:
Expand Down
4 changes: 4 additions & 0 deletions DEBIAN/posrm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
if [ -d /run/systemd/system ]; then
systemctl daemon-reload
fi
6 changes: 4 additions & 2 deletions DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
gzip -f /usr/local/man/man1/chonos-task.1
mandb

systemctl daemon-reload
systemctl enable chonos-task.service
systemctl start chonos-task.service
if [ -d /run/systemd/system ]; then
systemctl daemon-reload
systemctl start chonos-task.service
fi
7 changes: 4 additions & 3 deletions DEBIAN/prerm
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
systemctl stop chonos-task.service
systemctl disable chonos-task.service
systemctl daemon-reload
if [ -d /run/systemd/system ]; then
systemctl stop chonos-task.service
fi
systemctl disable chonos-task.service

0 comments on commit 1f5006b

Please sign in to comment.