Explorar o código

Add systemd service example

nagadomi %!s(int64=6) %!d(string=hai) anos
pai
achega
2835dc1935
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  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