You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
557 B
26 lines
557 B
[Unit]
|
|
# Copyright (c) 2025 Robert Strutts <bobs@NewToFaith.com>
|
|
# License: MIT
|
|
# GIT: https://git.mysnippetsofcode.com/bobs/execguard
|
|
Description=Executable Guardian for %i
|
|
After=network.target
|
|
StartLimitIntervalSec=60
|
|
StartLimitBurst=3
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/local/bin/execguard --%i
|
|
Restart=on-failure
|
|
RestartSec=2
|
|
SuccessExitStatus=0 4
|
|
RestartForceExitStatus=0 4
|
|
|
|
# Hardening
|
|
MemoryDenyWriteExecute=true
|
|
NoNewPrivileges=true
|
|
SystemCallArchitectures=native
|
|
RestrictSUIDSGID=yes
|
|
RestrictRealtime=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|