[Unit] Description=Sea vHost API After=network-online.target mysql.service sea-vhost-agent.service sea-vhost-panel-broker.service Requires=sea-vhost-agent.service sea-vhost-panel-broker.service Wants=network-online.target [Service] Type=simple User=sea-vhost Group=sea-vhost-control SupplementaryGroups=sea-vhost-agent-control sea-vhost-panel-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 UMask=0007 StateDirectory=sea-vhost StateDirectoryMode=0700 NoNewPrivileges=true PrivateTmp=true PrivateDevices=true ProtectProc=invisible ProcSubset=pid ProtectClock=true ProtectHostname=true ProtectSystem=strict ProtectHome=true ReadWritePaths=/www/wwwroot/seavHost/vHost /run/sea-vhost /var/lib/sea-vhost ProtectKernelTunables=true ProtectKernelModules=true ProtectKernelLogs=true ProtectControlGroups=true RestrictSUIDSGID=true RestrictRealtime=true LockPersonality=true MemoryDenyWriteExecute=true RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 CapabilityBoundingSet= AmbientCapabilities= LimitCORE=0 SystemCallArchitectures=native [Install] WantedBy=multi-user.target