set PWD to /etc/pyruse in systemd units

master
Yves G 2018-01-31 13:01:45 +01:00
parent cbe3fc2f56
commit fd1f801808
2 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ Description=Initialization of pyruse module %I
[Service]
Type=oneshot
ExecStart=/usr/bin/pyruse-boot "%I"
WorkingDirectory=/etc/pyruse
CapabilityBoundingSet=CAP_SYS_CHROOT
NoNewPrivileges=true
PrivateDevices=yes

View File

@ -3,6 +3,7 @@ Description=Route systemd-journal logs to filters and actions (ban, report…)
[Service]
ExecStart=/usr/bin/pyruse
WorkingDirectory=/etc/pyruse
CapabilityBoundingSet=CAP_SYS_CHROOT
NoNewPrivileges=true
PrivateDevices=yes