diff --git a/Cooklang/cooklang.service b/Cooklang/cooklang.service new file mode 100644 index 0000000..e4fd24f --- /dev/null +++ b/Cooklang/cooklang.service @@ -0,0 +1,16 @@ +[Unit] +Description=Cooklang Recipe Server +After=network.target + +[Service] +Type=simple +User=dietpi +WorkingDirectory=/mnt/cloudascoet/projexts/recipes +Execstart=/usr/local/bin/cook server --host --port 9080 +Restart=always +RestartSec=10 +StandardOutput=append:/var/log/cooklang.log +StandardError=append:/var/log/cooklang.log + +[Install] +WantedBy=multi-user.target