diff --git a/systemd/.config/systemd/user/default.target.wants/snapclient.service b/systemd/.config/systemd/user/default.target.wants/snapclient.service new file mode 120000 index 0000000..4d09af0 --- /dev/null +++ b/systemd/.config/systemd/user/default.target.wants/snapclient.service @@ -0,0 +1 @@ +/home/powellc/.config/systemd/user/snapclient.service \ No newline at end of file diff --git a/systemd/.config/systemd/user/snapclient.service b/systemd/.config/systemd/user/snapclient.service new file mode 100644 index 0000000..9338c05 --- /dev/null +++ b/systemd/.config/systemd/user/snapclient.service @@ -0,0 +1,10 @@ +[Unit] +Description=Snapclient + +[Service] +ExecStart=/usr/bin/snapclient -h mopidy2.local +ExecStop=kill $(pidof snapclient) +Restart=on-failure + +[Install] +WantedBy=default.target