...
 
Commits (2)
# This unit is bundled with calibre-autostart.service to auto-run it when a Kindle is mounted to the /media directory.
[Unit]
Description=Calibre autostarter
[Path]
PathExists=/media/Kindle
[Install]
WantedBy=multi-user.target
[Unit]
Description=Calibre autostarter
[Service]
ExecStart=/usr/bin/calibre
Type=oneshot
......@@ -6,7 +6,9 @@ Requires=sound.target
[Service]
ExecStart=/usr/bin/mopidy
Restart=always
# messy stop, could cause problems - figure out a better way to do this later?
ExecStop=/usr/bin/pkill mopidy
Restart=on-failure
[Install]
WantedBy=default.target