[opensuse] writing a systemd service unit that requires/wants a sysvinit service?
How do I specify a dependency for a sysvinit service ? For instance, I want to write a new service unit for a service that requires mysql. -- Per Jessen, Zürich (7.2°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
El 17/11/12 12:07, Per Jessen escribió:
How do I specify a dependency for a sysvinit service ? For instance, I want to write a new service unit for a service that requires mysql.
Wants=mysql.service.... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Cristian Rodríguez wrote:
El 17/11/12 12:07, Per Jessen escribió:
How do I specify a dependency for a sysvinit service ? For instance, I want to write a new service unit for a service that requires mysql.
Wants=mysql.service....
Thanks for confirming that. I did try that, but it didn't seem to work. -- Per Jessen, Zürich (4.6°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
El 17/11/12 13:54, Per Jessen escribió:
Cristian Rodríguez wrote:
El 17/11/12 12:07, Per Jessen escribió:
How do I specify a dependency for a sysvinit service ? For instance, I want to write a new service unit for a service that requires mysql.
Wants=mysql.service....
Thanks for confirming that. I did try that, but it didn't seem to work.
Wants=mysql.service (or Requires:) After=mysql.service should work.. what's the error message ? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Cristian Rodríguez wrote:
El 17/11/12 13:54, Per Jessen escribió:
Cristian Rodríguez wrote:
El 17/11/12 12:07, Per Jessen escribió:
How do I specify a dependency for a sysvinit service ? For instance, I want to write a new service unit for a service that requires mysql.
Wants=mysql.service....
Thanks for confirming that. I did try that, but it didn't seem to work.
Wants=mysql.service (or Requires:) After=mysql.service
should work.. what's the error message ?
Operator error ... I had it defined with the default Type=simple, but the daemon does the normal fork(), so I guess systemd automatically killed the forked() process. I changed it to Type=forking, and now it works. -- Per Jessen, Zürich (4.6°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Cristian Rodríguez
-
Per Jessen