From aef9887f718dcde3362547857a6fd145ff87622b Mon Sep 17 00:00:00 2001 From: Maddison Hellstrom Date: Sun, 3 May 2020 08:55:41 -0700 Subject: [PATCH] [source:feat] add systemd unit --- surfingkeys-conf.service | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 surfingkeys-conf.service diff --git a/surfingkeys-conf.service b/surfingkeys-conf.service new file mode 100644 index 0000000..20de77c --- /dev/null +++ b/surfingkeys-conf.service @@ -0,0 +1,22 @@ +# 1. Install this service to $XDG_CONFIG_HOME/systemd/user/ +# 2. Update the path in the ExecStart directive +# 3. Run systemctl --user daemon-reload +# 4. Run systemctl --user enable --now surfingkeys-conf.service + +[Unit] +Description=Surfingkeys configuration server +After=network.target graphical-session.target +PartOf=graphical-session.target +Requires=graphical-session.target + +[Service] +# Update the path in the following line to point to your surfingkeys-conf repository +ExecStart=bash -c 'cd /path/to/surfingkeys-conf; npm run gulp serve-simple' +Type=simple +Restart=always +RestartSec=10 + +[Install] +WantedBy=graphical-session.target + +# vim: set ft=systemd: