Prechádzať zdrojové kódy

Add systemd service example

nagadomi 6 rokov pred
rodič
commit
2835dc1935
1 zmenil súbory, kde vykonal 11 pridanie a 0 odobranie
  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