[Bug 1839492] Re: Bad test for $START_DARKSTAT in /etc/init.d/darkstat

2019-09-04 Thread Emil Mikulic
Glad you got it resolved. ;) The only other thing I can think of is that it sometimes fails to start at boot because of an ordering/timing problem (i.e. listening on an interface before it's up'd). Make darkstat log to syslog, reboot, and examine the syslog. -- You received this bug notification

[Bug 1839492] Re: Bad test for $START_DARKSTAT in /etc/init.d/darkstat

2019-09-04 Thread Marco Coletti
Just after boot: ● darkstat.service - LSB: start darkstat monitoring system at boot time Loaded: loaded (/etc/init.d/darkstat; bad; vendor preset: enabled) Active: active (running) since Wed 2019-09-04 15:56:16 CEST; 2min 30s ago Docs: man:systemd-sysv-generator(8) Process: 859 ExecSt

[Bug 1839492] Re: Bad test for $START_DARKSTAT in /etc/init.d/darkstat

2019-09-04 Thread Emil Mikulic
Ok so after boot what does "systemctl status darkstat" say? Because in #4 it was running with no errors. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1839492 Title: Bad test for $START_DARKSTAT in

[Bug 1839492] Re: Bad test for $START_DARKSTAT in /etc/init.d/darkstat

2019-09-03 Thread Marco Coletti
I never checked it just after a boot, but the process was always missing before a "systemctl restart". "systemctl start" definitely does not start the process. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net

[Bug 1839492] Re: Bad test for $START_DARKSTAT in /etc/init.d/darkstat

2019-09-03 Thread Emil Mikulic
Apparently "bad" just means it's not a native systemd service. So it doesn't start on boot? And it doesn't start on "systemctl start darkstat"? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1839492 T

[Bug 1839492] Re: Bad test for $START_DARKSTAT in /etc/init.d/darkstat

2019-09-03 Thread Marco Coletti
root@colm:~# systemctl start darkstat root@colm:~# systemctl status darkstat ● darkstat.service - LSB: start darkstat monitoring system at boot time Loaded: loaded (/etc/init.d/darkstat; bad; vendor preset: enabled) Active: active (exited) since Mon 2019-08-26 23:49:16 CEST; 1 weeks 0 days a

[Bug 1839492] Re: Bad test for $START_DARKSTAT in /etc/init.d/darkstat

2019-09-02 Thread Emil Mikulic
What shows up on the console + in "journalctl -f" + in syslog when you run: systemctl start darkstat systemctl status darkstat.service -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1839492 Title: B

[Bug 1839492] Re: Bad test for $START_DARKSTAT in /etc/init.d/darkstat

2019-09-02 Thread Marco Coletti
Yes, my bad, there is no bug in that expression. Altough for some reason "systemctl restart darkstat" works while "systemctl start darkstat" does not. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/183

[Bug 1839492] Re: Bad test for $START_DARKSTAT in /etc/init.d/darkstat

2019-08-31 Thread Emil Mikulic
Shouldn't: test "$START_DARKSTAT" = "yes" || exit 0 Mean "variable has to equal yes or else early exit" ? $ test "$X" = "yes" || echo early exit early exit $ export X=yes; test "$X" = "yes" || echo early exit $ What am I missing? -- You received this bug notification because you are a member o