From c52c9672865115ecfbc82f6bcc9be850457fb903 Mon Sep 17 00:00:00 2001 From: Sebastian Schulze Date: Tue, 16 Jul 2019 14:15:25 +0200 Subject: [PATCH] [bin] Add Mopidy as a systemd service --- .../user/default.target.wants/mopidy.service | 1 + home/.config/systemd/user/mopidy.service | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 120000 home/.config/systemd/user/default.target.wants/mopidy.service create mode 100644 home/.config/systemd/user/mopidy.service diff --git a/home/.config/systemd/user/default.target.wants/mopidy.service b/home/.config/systemd/user/default.target.wants/mopidy.service new file mode 120000 index 0000000..dedc14c --- /dev/null +++ b/home/.config/systemd/user/default.target.wants/mopidy.service @@ -0,0 +1 @@ +/home/bascht/.config/systemd/user/mopidy.service \ No newline at end of file diff --git a/home/.config/systemd/user/mopidy.service b/home/.config/systemd/user/mopidy.service new file mode 100644 index 0000000..aae152b --- /dev/null +++ b/home/.config/systemd/user/mopidy.service @@ -0,0 +1,16 @@ +[Unit] +Description=Mopidy +Description=Mopidy music server +After=avahi-daemon.service +After=dbus.service +After=network.target +After=nss-lookup.target +After=pulseaudio.service +After=remote-fs.target +After=sound.target + +[Service] +ExecStart=/home/bascht/.local/bin/mopidy + +[Install] +WantedBy=default.target \ No newline at end of file