How to create systemd.service in Fedora 16 (x86_64)?

Posted by marverix on Server Fault See other posts from Server Fault or by marverix
Published on 2011-12-03T19:57:11Z Indexed on 2012/06/04 4:42 UTC
Read the original article Hit count: 500

Filed under:
|

I have big problem with creating service in new way - by systemctl (systemd.service) in Fedora 16. I wonna to create very simple service for minidlna server. I have created new file called minidlna.service in /lib/systemd/system/ and here is how it's looks like:

[Unit]
Description=Mini DLNA

[Service]
Type=oneshot
ExecStart=/usr/sbin/minidlna

[Install]
WantedBy=multi-user.target

Unfortunately systemctl status minidlna.service prints:

  Loaded: loaded (/lib/systemd/system/minidlna.service; enabled)
  Active: inactive (dead) since Sat, 03 Dec 2011 20:49:23 +0100; 9s ago
Main PID: 1580 (code=exited, status=0/SUCCESS)
  CGroup: name=systemd:/system/minidlna.service

Any ideas how to fix it?

Cheers!

© Server Fault or respective owner

Related posts about fedora

Related posts about Services