This unit is provided by:
Options
-
[Install]
-
WantedBy=multi-user.target
-
-
[Service]
-
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
-
CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_CHOWN CAP_FOWNER
-
Environment="ONIONBALANCE_LOG_LOCATION=/var/log/onionbalance/log"
-
EnvironmentFile=-/etc/default/%p
-
ExecReload=/usr/bin/onionbalance reload
-
ExecReload=/usr/sbin/onionbalance reload
-
ExecStart=/usr/bin/onionbalance -c /etc/onionbalance/config.yaml
-
ExecStart=/usr/sbin/onionbalance -c /etc/onionbalance/config.yaml
-
ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry=TERM/5/KILL/5 --pidfile /run/onionbalance.pid
-
KillMode=mixed
-
LimitNOFILE=65536
-
LockPersonality
Introduced in systemd 235=yes -
NoNewPrivileges
Introduced in systemd 239=yes -
PIDFile=/run/onionbalance.pid
-
PermissionsStartOnly=yes
-
PrivateDevices
Introduced in systemd 209=yes -
PrivateTmp=yes
-
PrivateUsers=yes
-
ProtectClock
Introduced in systemd 245=yes -
ProtectControlGroups
Introduced in systemd 232=yes -
ProtectHome
Introduced in systemd 214=yes -
ProtectHostname
Introduced in systemd 242=yes -
ProtectKernelLogs
Introduced in systemd 244=yes -
ProtectKernelModules
Introduced in systemd 232=yes -
ProtectKernelTunables
Introduced in systemd 232=yes -
ProtectSystem
Introduced in systemd 214=full -
ReadOnlyDirectories=/
-
ReadWriteDirectories=-/proc -/var/lib/onionbalance -/var/log/onionbalance -/run/onionbalance
-
ReadWriteDirectories=-/proc -/var/log/onionbalance -/var/run
-
Restart=on-abnormal
-
RestartSec=2s
-
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
-
RestrictNamespaces
Introduced in systemd 233=yes -
RestrictRealtime
Introduced in systemd 231=yes -
RuntimeDirectory=onionbalance
-
SystemCallArchitectures=native
-
SystemCallFilter=@system-service
-
TimeoutStopSec
Introduced in systemd 188=5 -
Type=simple
-
User=onionbalance
-
-
[Unit]
-
After=network.target tor.service tor@.service tor-master.service
-
After=network.target tor.target
-
ConditionPathExists=/etc/onionbalance/config.yaml
-
Description=OnionBalance - Tor Onion Service load balancer
-
Documentation=https://github.com/DonnchaC/onionbalance
-
Documentation=man:onionbalance file:///usr/share/doc/onionbalance/html/index.html https://github.com/DonnchaC/onionbalance
-
Wants=network-online.target
-
Additionnal notes
Nothing here.