summaryrefslogtreecommitdiff
path: root/pcr/mediatomb/mediatomb-mariadb.service
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/mediatomb/mediatomb-mariadb.service')
-rw-r--r--pcr/mediatomb/mediatomb-mariadb.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/pcr/mediatomb/mediatomb-mariadb.service b/pcr/mediatomb/mediatomb-mariadb.service
new file mode 100644
index 000000000..5b83f1d78
--- /dev/null
+++ b/pcr/mediatomb/mediatomb-mariadb.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=MediaTomb Daemon using MariaDB
+After=mysql.target 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