Files
vHost/deploy/systemd/sea-vhost-controller.service

35 lines
734 B
Desktop File

[Unit]
Description=Sea vHost controller
After=network-online.target
Wants=network-online.target
[Service]
User=sea-vhost
Group=sea-vhost-control
EnvironmentFile=/etc/sea-vhost/sea-vhost.env
ExecStart=/opt/sea-vhost/bin/sea-vhost-api
WorkingDirectory=/opt/sea-vhost
Restart=on-failure
RestartSec=3
StateDirectory=sea-vhost
StateDirectoryMode=0700
UMask=0077
NoNewPrivileges=true
PrivateTmp=true
PrivateDevices=true
ProtectSystem=strict
ProtectHome=true
ProtectProc=invisible
ProcSubset=pid
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictSUIDSGID=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
CapabilityBoundingSet=
AmbientCapabilities=
LimitCORE=0
[Install]
WantedBy=multi-user.target