FS#32922 - [yaws] add systemd service file

Attached to Project: Community Packages
Opened by Patrick Smits (PS0) - Saturday, 01 December 2012, 13:32 GMT
Last edited by Alexander F. Rødseth (xyproto) - Thursday, 17 January 2013, 13:33 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Vesa Kaihlavirta (vegai)
Alexander F. Rødseth (xyproto)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Please add a systemd service file for Yaws. I've attached a service file that works for me (with Yaws package 1.95-1 on a x86_64 architecture).
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Thursday, 17 January 2013, 13:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  Didn't include GuessMainPID=no to the .service file, fixed now.
Comment by Alexander F. Rødseth (xyproto) - Saturday, 01 December 2012, 18:07 GMT
Thanks for reporting, I will look into this.
Comment by Alexander F. Rødseth (xyproto) - Saturday, 01 December 2012, 19:12 GMT
Updated the package, gave you credits in the PKGBUILD. Thanks.
Comment by Patrick Smits (PS0) - Thursday, 17 January 2013, 02:15 GMT
  • Field changed: Percent Complete (100% → 0%)
I saw that the line 'GuessMainPID=no' was removed from the yaws.service file in the final package (1.95-3), but I included that line on purpose. It allows the 'heart' engine of Erlang to restart Yaws after a crash. When the PID guessing algorithm of systemd is enabled (default), it kills the heart process when Yaws (beam.smp) crashes. So, to be able to use the heart engine, the PID guessing algorithm of systemd has to be disabled. However, the heart engine isn't required by Yaws, it's just a feature. It's also possible to disable the heart engine.

In summary, there are two options:
1. Add the line 'GuessMainPID=no', which allows the restart feature to work correctly.
2. Remove the '--heart' flag from the ExecStart command, which disables the restart feature.
Comment by Alexander F. Rødseth (xyproto) - Thursday, 17 January 2013, 13:32 GMT
Hi, fixed. Thank you.

Loading...