On 03/22/2012 01:04 PM, Timothy Murphy wrote:

I'd agree that the systemctl syntax is clumsier.

The CLI syntax is different, but the difference is negligible once you are used to it.

However, the *.service file syntax is much, MUCH simpler than the old init scripts!

An old-style postgrey init script:
http://lists.puremagic.com/pipermail/greylist-users/2006-May/001208.html

A new-style postgrey service file:
http://bugzilla.redhat.com/show_bug.cgi?id=714430#c10

There is way less wonky bash scripting in the new service file, because it is mostly declarations, rather than code. As an added bonus, the old postgrey init script never worked properly for me (it did not kill cleanly, no idea why), but the new systemd service file works great.

For example, if you declare the name of the pid file in the service file, systemd automatically knows to use that pid when stopping the service. It's brilliant.


- Mike
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to