'restart' serviio with systemd?
I've installed serviio DLNA server.
I cribbed the Fedora >= v15 systemd unit file from http://wiki.serviio.org/doku.php?id=how ... all:fedora.
`start` & `stop` work fine. but `restart` fails.
Here's the details:
I thought restart is just supposed to be stop+start; apparently not quite the same.
Any hints on the right unit file config for 'restart'?
I cribbed the Fedora >= v15 systemd unit file from http://wiki.serviio.org/doku.php?id=how ... all:fedora.
`start` & `stop` work fine. but `restart` fails.
Here's the details:
- Code:
cat /etc/systemd/system/serviio.service
[Unit]
Description=Serviio Media Server
After=network.target
[Service]
User=serviio
Group=serviio
ExecStart=/usr/local/serviio/bin/serviio.sh
ExecStop=/usr/local/serviio/bin/serviio.sh -stop
KillMode=none
[Install]
WantedBy=multi-user.target
systemctl stop serviio.service
systemctl start serviio.service
systemctl status serviio.service
serviio.service - Serviio Media Server
Loaded: loaded (/etc/systemd/system/serviio.service; enabled)
Active: active (running) since Fri, 2013-08-23 10:40:36 PDT; 47ms ago
Process: 18874 ExecStop=/usr/local/serviio/bin/serviio.sh -stop (code=exited, status=0/SUCCESS)
Main PID: 19044 (serviio.sh)
CGroup: name=systemd:/system/serviio.service
├ 19044 /bin/sh /usr/local/serviio/bin/serviio.sh
└ 19056 java -Xms1024M -Xmx1024M -XX:+UseParNewGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -Dserviio.boundAddr=10.1.1.100 -Dserviio.defaultTranscodeFolder=/root/tmp -Djava.net.preferIPv4Stack=true -Djava.a...
systemctl restart serviio.service
systemctl status serviio.service
serviio.service - Serviio Media Server
Loaded: loaded (/etc/systemd/system/serviio.service; enabled)
Active: inactive (dead) since Fri, 2013-08-23 10:35:42 PDT; 491ms ago
Process: 18874 ExecStop=/usr/local/serviio/bin/serviio.sh -stop (code=exited, status=0/SUCCESS)
Process: 18843 ExecStart=/usr/local/serviio/bin/serviio.sh (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/serviio.service
I thought restart is just supposed to be stop+start; apparently not quite the same.
Any hints on the right unit file config for 'restart'?