/lib/systemd/system/mediatomb.service is in mediatomb-daemon 0.12.1-47-g7ab7616-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | [Unit]
Description=UPnP MediaServer
After=NetworkManager-wait-online.service network.target
[Service]
Type=forking
EnvironmentFile=/etc/default/mediatomb
PIDFile=/run/mediatomb.pid
ExecStartPre=/bin/grep -q MT_USER /etc/default/mediatomb
ExecStartPre=-/sbin/route add -net 239.0.0.0 netmask 255.0.0.0 $MT_INTERFACE
ExecStartPre=-/sbin/ifconfig $MT_INTERFACE allmulti
ExecStart=/usr/bin/mediatomb -d -u $MT_USER -g $MT_GROUP -P /run/mediatomb.pid -l $MT_LOGFILE -m $MT_HOME -f $MT_CFGDIR -p $MT_PORT -e $MT_INTERFACE
ExecStopPost=-/sbin/route del -net 239.0.0.0 netmask 255.0.0.0
ExecStopPost=-/sbin/ifconfig $MT_INTERFACE -allmulti
[Install]
WantedBy=multi-user.target
|