Add systemd service example
This commit is contained in:
parent
07ac8b8559
commit
2835dc1935
11
appendix/waifu2x_1.service
Normal file
11
appendix/waifu2x_1.service
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description = waifu2x API
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
WorkingDirectory=/home/ubuntu/waifu2x
|
||||||
|
ExecStart = /home/ubuntu/waifu2x/appendix/run-web.sh 1 8811
|
||||||
|
Restart = always
|
||||||
|
Type = simple
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy = multi-user.target
|
Loading…
Reference in a new issue