diff options
author | John-Gee | 2018-08-12 18:27:05 -0700 |
---|---|---|
committer | John-Gee | 2018-08-12 18:27:05 -0700 |
commit | 064e37ba37cee7b00eeec22a0c436268294b9ccf (patch) | |
tree | 7e64b4d74ed5a078be23b7ab71d66823d112ccc8 /autorestartNM.install | |
download | aur-autorestartnm.tar.gz |
Reuploaded from aur3
Diffstat (limited to 'autorestartNM.install')
-rw-r--r-- | autorestartNM.install | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/autorestartNM.install b/autorestartNM.install new file mode 100644 index 000000000000..be89827b7353 --- /dev/null +++ b/autorestartNM.install @@ -0,0 +1,23 @@ +post_install() { + cp /etc/conf.d/autorestartNM.sample.conf /etc/conf.d/autorestartNM.conf + + systemctl daemon-reload + systemctl enable timer-variable.timer + systemctl start timer-variable.timer + + echo '------------------------------------------------------------------------' + echo 'Please edit /etc/conf.d/autorestartNM.conf to your needs.' + echo 'The autorestartNM service will fail till you do so.' + echo '------------------------------------------------------------------------' +} + +post_upgrade() { + systemctl daemon-reload + systemctl restart timer-variable.timer +} + +post_remove() { + systemctl disable timer-variable.timer + systemctl stop timer-variable.timer + systemctl daemon-reload +} |