mirror of https://github.com/midoks/mdserver-web
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
322 B
16 lines
322 B
[Unit]
|
|
Description=mw-task daemon
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory={$SERVER_PATH}
|
|
EnvironmentFile={$SERVER_PATH}/scripts/init.d/service.sh
|
|
ExecStart=python3 task.py
|
|
ExecStop=kill -HUP $MAINID
|
|
ExecReload=kill -HUP $MAINID
|
|
KillMode=process
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |