1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-11 12:46:49 +00:00

build: computes run gstfsd as a systemd unit instead of under supervisor

The compute bootstrap installs gstfsd and webvirt-gstfsd.service in one
helper and no longer installs or restarts supervisor; the README's
compute step does the same, a remote panel's bind goes into a drop-in,
and a compute moving from supervisor removes its gstfsd program.
This commit is contained in:
catborise 2026-10-17 23:19:52 +03:00
parent 837c5468ec
commit 42359ca2e2
4 changed files with 32 additions and 109 deletions

View file

@ -1,9 +0,0 @@
[program:gstfsd]
command=/usr/bin/python3 /usr/local/bin/gstfsd
directory=/usr/local/bin
user=root
autostart=true
autorestart=true
redirect_stderr=true
# Remote compute (unauthenticated root service, trusted networks only):
;environment=GSTFSD_BIND_HOST="0.0.0.0",GSTFSD_ALLOW_REMOTE="1"

View file

@ -1,22 +1,12 @@
[Unit]
Description=Webvirt Cloud GSTFSD
Description=WebVirtCloud gstfsd (root password and SSH keys of shut-off VMs)
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/python3 /usr/local/bin/gstfsd
Restart=on-failure
RestartSec=10
LimitNOFILE=64000
# Remote compute (unauthenticated root service, trusted networks only):
#Environment=GSTFSD_BIND_HOST=0.0.0.0
#Environment=GSTFSD_ALLOW_REMOTE=1
ExecStart=/usr/bin/python3 /usr/local/bin/gstfsd
# Make sure stderr/stdout is captured in the systemd journal.
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target