You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
716 B

[Unit]
Description=TERA privileged system time adapter
After=local-fs.target
Before=tera-api.service
[Service]
Type=simple
User=root
Group=tera
EnvironmentFile=-/etc/tera/tera-timed.env
ExecStart=/usr/bin/tera-timed
Restart=on-failure
RestartSec=2s
RuntimeDirectory=tera-timed
RuntimeDirectoryMode=0750
UMask=0007
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=full
ProtectHome=true
PrivateDevices=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true
RestrictAddressFamilies=AF_UNIX
RestrictSUIDSGID=true
CapabilityBoundingSet=CAP_SYS_TIME
AmbientCapabilities=CAP_SYS_TIME
ReadWritePaths=/run/tera-timed /etc/localtime /etc/ntp.conf /var/run
[Install]
WantedBy=multi-user.target