This commit is contained in:
Your Name
2025-09-29 09:39:14 -04:00
parent 3edc477069
commit e6bef22494
2 changed files with 17 additions and 8 deletions

View File

@@ -6,10 +6,11 @@ Wants=network-online.target
[Service]
Type=simple
User=superball
Group=superball
WorkingDirectory=/path/to/thrower_daemon
ExecStart=/usr/bin/node daemon.js /etc/superball/config.json
User=superball-thrower
Group=superball-thrower
WorkingDirectory=/opt/superball-thrower
ExecStart=/usr/local/bin/node daemon.js
Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Restart=always
RestartSec=10
StandardOutput=journal
@@ -21,7 +22,7 @@ NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/log/superball
ReadWritePaths=/var/log/superball-thrower /opt/superball-thrower
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true