mirror of
https://github.com/zrepl/zrepl.git
synced 2025-08-19 11:19:03 +02:00
systemd: set GOTRACEBACK=crash so that we have core dumps
They are useful, not least to debug issues with debugging SIGSYS caused by overly restrictive settings in the unit file. (See previous commit for an example.)
This commit is contained in:
3
dist/systemd/zrepl.service
vendored
3
dist/systemd/zrepl.service
vendored
@@ -9,6 +9,9 @@ ExecStart=/usr/local/bin/zrepl --config /etc/zrepl/zrepl.yml daemon
|
||||
RuntimeDirectory=zrepl zrepl/stdinserver
|
||||
RuntimeDirectoryMode=0700
|
||||
|
||||
# Make Go produce coredumps
|
||||
Environment=GOTRACEBACK='crash'
|
||||
|
||||
ProtectSystem=strict
|
||||
#PrivateDevices=yes # TODO ZFS needs access to /dev/zfs, could we limit this?
|
||||
ProtectKernelTunables=yes
|
||||
|
Reference in New Issue
Block a user