Browse Source

Add systemd service example

nagadomi 6 năm trước cách đây
mục cha
commit
2835dc1935
1 tập tin đã thay đổi với 11 bổ sung0 xóa
  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