Browse Source

set PWD to /etc/pyruse in systemd units

master
Yves G 3 years ago
parent
commit
fd1f801808
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      extra/systemd/pyruse-boot@.service
  2. +1
    -0
      extra/systemd/pyruse.service

+ 1
- 0
extra/systemd/pyruse-boot@.service 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


+ 1
- 0
extra/systemd/pyruse.service 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


Loading…
Cancel
Save