When running lnst-slave as daemon it tried to create PID file in current working directory, which could fail if user was in dir with read only access.
This patch sets default location for PID file to be in /var/run where most of .pid files are stored.
Fixes issue #169
Signed-off-by: Jiri Prochazka jprochaz@redhat.com --- lnst-slave | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst-slave b/lnst-slave index 93856c2..ebb4cd3 100755 --- a/lnst-slave +++ b/lnst-slave @@ -64,7 +64,7 @@ def main():
debug = False daemon = False - pidfile = "lnst-slave.pid" + pidfile = "/var/run/lnst-slave.pid" port = None coloured_output = not lnst_config.get_option("colours", "disable_colours") for opt, arg in opts:
Tue, May 17, 2016 at 12:01:03PM CEST, jprochaz@redhat.com wrote:
When running lnst-slave as daemon it tried to create PID file in current working directory, which could fail if user was in dir with read only access.
This patch sets default location for PID file to be in /var/run where most of .pid files are stored.
Fixes issue #169
Signed-off-by: Jiri Prochazka jprochaz@redhat.com
Please check if this works fine with service lnst-slave start (RHEL6) systemctl start lnst-slave (RHEL7/Fedora)
Otherwise, Acked-by: Jan Tluka jtluka@redhat.com
On Tue, May 17, 2016 at 12:01:03PM +0200, Jiri Prochazka wrote:
When running lnst-slave as daemon it tried to create PID file in current working directory, which could fail if user was in dir with read only access.
This patch sets default location for PID file to be in /var/run where most of .pid files are stored.
Fixes issue #169
Signed-off-by: Jiri Prochazka jprochaz@redhat.com
lnst-slave | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst-slave b/lnst-slave index 93856c2..ebb4cd3 100755 --- a/lnst-slave +++ b/lnst-slave @@ -64,7 +64,7 @@ def main():
debug = False daemon = False
- pidfile = "lnst-slave.pid"
- pidfile = "/var/run/lnst-slave.pid" port = None coloured_output = not lnst_config.get_option("colours", "disable_colours") for opt, arg in opts:
-- 2.4.11 _______________________________________________ LNST-developers mailing list lnst-developers@lists.fedorahosted.org https://lists.fedorahosted.org/admin/lists/lnst-developers@lists.fedorahoste...
applied, thanks
lnst-developers@lists.fedorahosted.org