.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user