Add systemd service

This commit is contained in:
Locria Cyber 2022-09-03 01:12:17 +08:00
parent 235c403eda
commit 5e0ab00c47
Signed by: iacore
GPG key ID: ED0D424AE4406330
2 changed files with 13 additions and 0 deletions

11
go-webring.service Normal file
View file

@ -0,0 +1,11 @@
[Unit]
Description=go-webring
After=network.target
Wants=network.target
[Service]
Type=simple
ExecStart=%h/g/go-webring/start.fish
[Install]
WantedBy=default.target

View file

@ -1,5 +1,7 @@
#!/usr/bin/fish
cd (dirname (status -f))
set SOCKET_PATH /srv/http/pages/ring
rm $SOCKET_PATH -f
./go-webring -i /srv/http/exozyme/fuqs.html -l $SOCKET_PATH -m /srv/http/pages/.ring/list.txt &