diff options
author | tdro <tdro@users.noreply.github.com> | 2022-01-17 19:45:01 -0500 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2022-01-17 19:45:01 -0500 |
commit | d13a2fd835b6273fb6d654a6bacc65d360f0ce19 (patch) | |
tree | e660955333ac1bab0fc66c6be14c890e9186fa81 /.config/systemd/user/syncthing.service | |
parent | 5be8c5a1f78f2d7d0cf79c64c82772ce63ffd156 (diff) | |
download | dotfiles-d13a2fd835b6273fb6d654a6bacc65d360f0ce19.tar.gz dotfiles-d13a2fd835b6273fb6d654a6bacc65d360f0ce19.tar.bz2 dotfiles-d13a2fd835b6273fb6d654a6bacc65d360f0ce19.zip |
.config/systemd: Cleanup user services
Fail loudly on failure for some units.
Diffstat (limited to '.config/systemd/user/syncthing.service')
-rw-r--r-- | .config/systemd/user/syncthing.service | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/.config/systemd/user/syncthing.service b/.config/systemd/user/syncthing.service index d1b862c..7683fad 100644 --- a/.config/systemd/user/syncthing.service +++ b/.config/systemd/user/syncthing.service @@ -1,21 +1,15 @@ [Unit] Description=Syncthing - Open Source Continuous File Synchronization -After=network.target +StartLimitBurst=5 +StartLimitIntervalSec=600 [Service] -ExecStart=/usr/bin/env syncthing -no-browser -no-restart -logflags=0 +IOWeight=60 +CPUQuota=60% +RestartSec=3 Restart=always -RestartSec=5s SyslogIdentifier=syncthing -CPUQuota=60% -IOWeight=60 - -# Hardening -ProtectSystem=full -PrivateTmp=true -SystemCallArchitectures=native -MemoryDenyWriteExecute=true -NoNewPrivileges=true +ExecStart=/usr/bin/env syncthing -no-browser -no-restart -logflags=0 [Install] WantedBy=default.target |