Browse Source

Add systemd service example

nagadomi 6 years ago
parent
commit
2835dc1935
1 changed files with 11 additions and 0 deletions
  1. 11 0
      appendix/waifu2x_1.service

+ 11 - 0
appendix/waifu2x_1.service

@@ -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