| 1 |
[Unit] |
| 2 |
Description=MPD_sima autoqueue utility |
| 3 |
Documentation=man:mpd-sima |
| 4 |
After=network.target |
| 5 |
|
| 6 |
[Service] |
| 7 |
User=mpd-sima |
| 8 |
Type=simple |
| 9 |
EnvironmentFile=-/etc/default/mpd-sima |
| 10 |
ExecStart=/usr/bin/mpd-sima --var_dir=/var/lib/mpd-sima/ --config=/etc/mpd-sima.cfg |
| 11 |
#ExecReload=/bin/kill -HUP $MAINPID |
| 12 |
KillMode=process |
| 13 |
#Restart=on-failure |
| 14 |
|
| 15 |
## Some hardening |
| 16 |
# disallow writing to /usr, /boot, /etc |
| 17 |
ProtectSystem=full |
| 18 |
# sets up tmp in a new file system namespace |
| 19 |
PrivateTmp=true |
| 20 |
|
| 21 |
[Install] |
| 22 |
WantedBy=multi-user.target |
| 23 |
|
| 24 |
# vim: ft=systemd |