abraunegg-onedrive/contrib/systemd/onedrive.service.in

27 lines
681 B
SYSTEMD
Raw Normal View History

2015-11-29 21:12:44 +01:00
[Unit]
Description=OneDrive Free Client
Documentation=https://github.com/abraunegg/onedrive
After=network-online.target
Wants=network-online.target
2015-11-29 21:12:44 +01:00
[Service]
# Commented out hardenings are disabled because they may not work out of the box on your distribution
# If you know what you are doing please try to enable them.
ProtectSystem=full
PrivateUsers=true
#PrivateDevices=true
ProtectHostname=true
#ProtectClock=true
ProtectKernelTunables=true
#ProtectKernelModules=true
#ProtectKernelLogs=true
ProtectControlGroups=true
RestrictRealtime=true
ExecStart=@prefix@/bin/onedrive --monitor
Restart=on-failure
RestartSec=3
RestartPreventExitStatus=3
2015-11-29 21:12:44 +01:00
[Install]
WantedBy=default.target