blob: ad0615134a279c75be601ba10be031e36f03b82d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
[Unit]
Description=Syncthing discovery server
After=network.target
[Service]
User=syncthing
Group=syncthing
WorkingDirectory=/var/discosrv
ExecStart=/usr/bin/syncthing-discosrv -db-dir /var/discosrv/discosrv.db -cert /var/discosrv/cert.pem -key /var/discosrv/key.pem
Restart=on-failure
SuccessExitStatus=2
PrivateDevices=true
ProtectSystem=full
ProtectHome=true
NoNewPrivileges=true
[Install]
WantedBy=multi-user.target
|