Re: [systemd-devel] Schedule reboot in *.service file

2019-06-07 Thread Mike Gilbert
On Fri, Jun 7, 2019 at 6:14 AM Jeffrey Walton wrote: > > On Thu, May 16, 2019 at 11:02 AM Mike Gilbert wrote: > > > > On Thu, May 16, 2019 at 4:50 AM Lennart Poettering > > wrote: > > > > > > On Mi, 15.05.19 15:53, Jeffrey Walton (noloa...@gmail.com) wrote: > > > > > > > if [[ "$NEEDS_REBOOT"

Re: [systemd-devel] Schedule reboot in *.service file

2019-05-16 Thread Mike Gilbert
On Thu, May 16, 2019 at 4:50 AM Lennart Poettering wrote: > > On Mi, 15.05.19 15:53, Jeffrey Walton (noloa...@gmail.com) wrote: > > > if [[ "$NEEDS_REBOOT" -eq 1 ]] > > then > > echo "Scheduling reboot in 10 minutes" > > reboot -r 10 > > This syntax is not understood by systemd: > >

Re: [systemd-devel] Schedule reboot in *.service file

2019-05-16 Thread Lennart Poettering
On Mi, 15.05.19 15:53, Jeffrey Walton (noloa...@gmail.com) wrote: > if [[ "$NEEDS_REBOOT" -eq 1 ]] > then > echo "Scheduling reboot in 10 minutes" > reboot -r 10 This syntax is not understood by systemd: https://www.freedesktop.org/software/systemd/man/reboot.html# If you want to

[systemd-devel] Schedule reboot in *.service file

2019-05-15 Thread Jeffrey Walton
Hi Everyone, I have a systemd timer that fires early in the morning. The timer starts a systemd service, and the service checks for updates using the package manager. If updates are found then they are applied. The service runs fine and is shown below. The tail of the service schedules a reboot