From: Michal Sojka Date: Thu, 17 Dec 2020 08:58:17 +0000 (+0100) Subject: Rename novaboot-power-off.service to novaboot-delayed-power-off.service X-Git-Tag: 20201217~2 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/novaboot.git/commitdiff_plain/916ad955da772d39df5c565f5299a034b04b0e32 Rename novaboot-power-off.service to novaboot-delayed-power-off.service Also rework the logic to not relay on systemd's Conflicts but switch off the timer explicitly in novaboot-power script. --- diff --git a/debian/novaboot-server.install b/debian/novaboot-server.install index 1659f1d..6f35d49 100644 --- a/debian/novaboot-server.install +++ b/debian/novaboot-server.install @@ -4,7 +4,7 @@ /lib/systemd/system/novaboot-power@.service /usr/sbin/novaboot-power /usr/bin/novaboot-shell -/usr/lib/systemd/user/novaboot-power-off.service +/usr/lib/systemd/user/novaboot-delayed-power-off.service /usr/lib/sysusers.d/novaboot-server.conf /usr/sbin/adduser-novaboot /usr/share/man/man1/novaboot-shell.1 diff --git a/server/Makefile b/server/Makefile index 812071a..190c5a1 100644 --- a/server/Makefile +++ b/server/Makefile @@ -17,6 +17,6 @@ install: all install -D -m 644 -t $(DESTDIR)/lib/systemd/system systemd/novaboot-power-off@.service install -D -m 644 -t $(DESTDIR)/lib/systemd/system systemd/novaboot-power-off@.timer install -D -m 644 -t $(DESTDIR)/lib/systemd/system systemd/novaboot-power@.service - install -D -m 644 -t $(DESTDIR)/usr/lib/systemd/user systemd/novaboot-power-off.service + install -D -m 644 -t $(DESTDIR)/usr/lib/systemd/user systemd/novaboot-delayed-power-off.service install -D -m 440 systemd/sudoers.novaboot-server $(DESTDIR)/etc/sudoers.d/novaboot-server install -D -m 755 -t $(DESTDIR)$(PREFIX)/sbin systemd/novaboot-power diff --git a/server/adduser-novaboot b/server/adduser-novaboot index b4417d4..dec3804 100755 --- a/server/adduser-novaboot +++ b/server/adduser-novaboot @@ -96,12 +96,12 @@ chown $user: $home/.novaboot-shell if [ -d /run/systemd/system ]; then cat <