From 250247c04f5a4822f119c0a539e004872c673095 Mon Sep 17 00:00:00 2001 From: Adam Rabjerg Date: Sat, 19 Jun 2021 13:44:26 +0200 Subject: [PATCH] added systemd unit for hosting on a raspberry pi. --- etc/systemd/system/twilio_webhook.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 etc/systemd/system/twilio_webhook.service diff --git a/etc/systemd/system/twilio_webhook.service b/etc/systemd/system/twilio_webhook.service new file mode 100644 index 0000000..81220aa --- /dev/null +++ b/etc/systemd/system/twilio_webhook.service @@ -0,0 +1,14 @@ +[Unit] +Description=Grafana SMS webhook for twilio + +[Service] +ExecStart=/home/pi/git/grafana_twilio_webhook/run.sh +WorkingDirectory=/home/pi/git/grafana_twilio_webhook +User=pi +StandardOutput=journal +Restart=always +RestartSec=10 + +[Install] +WantedBy=multi-user.target +