23 lines
522 B
SYSTEMD
23 lines
522 B
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=Pithos on Silent Mode (hosted s3d gateway)
|
||
|
|
After=network-online.target
|
||
|
|
Wants=network-online.target
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
User=pithos
|
||
|
|
Group=pithos
|
||
|
|
WorkingDirectory=/opt/pithos
|
||
|
|
ExecStart=/usr/bin/node /opt/pithos/hosted/main.js --config /etc/pithos-hosted.json
|
||
|
|
Restart=on-failure
|
||
|
|
RestartSec=5
|
||
|
|
# Stopping flushes every s3d's leftovers to Sia first.
|
||
|
|
TimeoutStopSec=300
|
||
|
|
KillMode=mixed
|
||
|
|
NoNewPrivileges=true
|
||
|
|
ProtectSystem=strict
|
||
|
|
ReadWritePaths=/var/lib/pithos-hosted
|
||
|
|
PrivateTmp=true
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|