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(a)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