[systemd-devel] Automatic Reboot Protocol
systemdkiosk at yopmail.com
systemdkiosk at yopmail.com
Sat May 25 22:29:31 PDT 2013
Jan Alexander Steffens,
So in this timer, where/how apply reboot.target,
or else tell systemd to invoke? Thx
----------------------------------------------
# /etc/systemd/system/nightjanitor.timer
[Unit]
Description=Nightly wee-hours heartbeat
[Timer]
OnCalendar=*-*-* 01:23:45
Unit=nightjanitor.service
[Install]
WantedBy=multi-user.target
----------------------------------------------
# /etc/systemd/system/nightjanitor.service
[Unit]
Description=Nightly chores
[Service]
Type=simple
ExecStart=/etc/systemd/system/nightjanitor.sh
----------------------------------------------
#!/usr/bin/env bash
# /etc/systemd/system/nightjanitor.sh
set -e
# do system stuff like backup
# and house-clean generally,
# then REBOOT as final step
--
http://www.fastmail.fm - Choose from over 50 domains or use your own
More information about the systemd-devel
mailing list