diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-06-16 12:00:34 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-03-19 00:13:55 +0100 |
commit | 4a05d7ed72be443c40d5bf9a21bc4352c0d7fbb5 (patch) | |
tree | 664e01443c541f1e745de00f8b627c7f4a867f91 /units/systemd-sysupdate.service.in | |
parent | 43cc7a3ef4f6a89946e7ffd6a3112a0c1740b1ef (diff) | |
download | systemd-4a05d7ed72be443c40d5bf9a21bc4352c0d7fbb5.tar.gz |
unit: add units for new "systemd-sysupdate" tool
These unit (if enabled) will try to update the OS in regular intervals.
Moreover, every day in the early morning this will attempt to reboot the
system if there's a newer version installed than running.
Diffstat (limited to 'units/systemd-sysupdate.service.in')
-rw-r--r-- | units/systemd-sysupdate.service.in | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/units/systemd-sysupdate.service.in b/units/systemd-sysupdate.service.in new file mode 100644 index 0000000000..085a9c4a22 --- /dev/null +++ b/units/systemd-sysupdate.service.in @@ -0,0 +1,34 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Automatic System Update +Documentation=man:systemd-sysupdate.service(8) +Wants=network-online.target +After=network-online.target +ConditionVirtualization=!container + +[Service] +Type=simple +NotifyAccess=main +ExecStart={{ROOTLIBEXECDIR}}/systemd-sysupdate update +CapabilityBoundingSet=CAP_CHOWN CAP_FOWNER CAP_FSETID CAP_MKNOD CAP_SETFCAP CAP_SYS_ADMIN CAP_SETPCAP CAP_DAC_OVERRIDE CAP_LINUX_IMMUTABLE +NoNewPrivileges=yes +MemoryDenyWriteExecute=yes +ProtectHostname=yes +RestrictRealtime=yes +RestrictNamespaces=net +RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 +SystemCallFilter=@system-service @mount +SystemCallErrorNumber=EPERM +SystemCallArchitectures=native +LockPersonality=yes + +[Install] +Also=systemd-sysupdate.timer |