cccc/etc/systemd/system/cccc.service

15 lines
220 B
SYSTEMD
Raw Normal View History

[Unit]
Description=cccc server
[Service]
Type=simple
Restart=always
User=cccc
Group=cccc
WorkingDirectory=/opt/cccc
ExecStart=/opt/cccc/server.py
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target