cang-ying/remote-node/systemd/canger-control.service

23 lines
528 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Canger Singapore Control Plane
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=canger-control
Group=canger-control
WorkingDirectory=/opt/zhuyuan/cang-ying/remote-node
EnvironmentFile=/etc/canger-control.env
ExecStart=/usr/bin/python3 /opt/zhuyuan/cang-ying/remote-node/server/control_plane.py
Restart=always
RestartSec=3
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/lib/canger-control
[Install]
WantedBy=multi-user.target