diff options
Diffstat (limited to 'pcr/mediatomb/mediatomb.service')
-rw-r--r-- | pcr/mediatomb/mediatomb.service | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pcr/mediatomb/mediatomb.service b/pcr/mediatomb/mediatomb.service new file mode 100644 index 000000000..e9869cfb5 --- /dev/null +++ b/pcr/mediatomb/mediatomb.service @@ -0,0 +1,13 @@ +[Unit] +Description=MediaTomb Daemon +After=network.target + +[Service] +EnvironmentFile=/etc/conf.d/mediatomb +ExecStart=/usr/bin/mediatomb -p $MT_PORT -u $MT_USER -g $MT_GROUP \ + -P $MT_PIDFILE -l $MT_LOGFILE -m $MT_HOME -f $MT_CFGDIR $MT_OPTIONS +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target |