mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-21 16:03:32 +01:00
cc0f3b1f13
It pains me to do it, but, especially with hooks, the Protect settings are too restrictive. I wish there were a systemd API that allowed us to self-sandbox, using these settings, _after_ parsing the config. fixes https://github.com/zrepl/zrepl/issues/735
17 lines
403 B
Desktop File
17 lines
403 B
Desktop File
[Unit]
|
|
Description=zrepl daemon
|
|
Documentation=https://zrepl.github.io
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStartPre=/usr/local/bin/zrepl --config /etc/zrepl/zrepl.yml configcheck
|
|
ExecStart=/usr/local/bin/zrepl --config /etc/zrepl/zrepl.yml daemon
|
|
RuntimeDirectory=zrepl zrepl/stdinserver
|
|
RuntimeDirectoryMode=0700
|
|
|
|
# Make Go produce coredumps
|
|
Environment=GOTRACEBACK='crash'
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|