OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • 20.7 Production Series »
  • Services not restarting on reboot
« previous next »
  • Print
Pages: [1]

Author Topic: Services not restarting on reboot  (Read 607 times)

Koldnitz

  • Newbie
  • *
  • Posts: 26
  • Karma: 5
    • View Profile
Services not restarting on reboot
« on: August 02, 2020, 12:56:38 am »
Hello,

I have been messing with sensei this afternoon and in doing so have rebooted my router about 10 times.

I have noticed that netdata and syslog-ng sometimes do not come up with the server.  They have a few times, but mostly they do not.

This never happened previously on 20.1, I rebooted the router a whole bunch on that series because I hosed my configuration a few times.

Has anyone noticed this? 

I have not changed my config since 20.1 other than to turn off circular logging.

I am hoping nothing is corrupted because I really do not want to have to rebuild this thing again.

Cheers,
Logged

Koldnitz

  • Newbie
  • *
  • Posts: 26
  • Karma: 5
    • View Profile
Re: syslog-ng / netdata not restarting on reboot
« Reply #1 on: August 02, 2020, 08:40:55 pm »
Is this happening to anyone other than me and jerry89?

Jerry89 posed in the postfix not logging thread and seems to have disabled circular logging as well.

Should I not disable circular logging?

I read in multiple places it was on it way out and was going to be removed.

I am not sure whats going on with netdata doing a complete reinstall to see if that fixes it

Cheers,
Logged

FullyBorked

  • Full Member
  • ***
  • Posts: 103
  • Karma: 9
    • View Profile
Re: Services not restarting on reboot
« Reply #2 on: August 02, 2020, 08:53:47 pm »
I'm having similar issues, syslog-ng never starts on it's own.  I always have to manually start it. 
Logged

Koldnitz

  • Newbie
  • *
  • Posts: 26
  • Karma: 5
    • View Profile
Re: Services not restarting on reboot
« Reply #3 on: August 02, 2020, 08:57:29 pm »
I just reset logs and that didn't fix it.

I turned circular logging back on and while syslogd comes up immediately, remote syslog-ng does not, and must be manually started still.

I guess maybe this is just a bug (I hope something on my system didn't corrupt)?

Cheers,
Logged

FullyBorked

  • Full Member
  • ***
  • Posts: 103
  • Karma: 9
    • View Profile
Re: Services not restarting on reboot
« Reply #4 on: August 02, 2020, 09:00:13 pm »
I wouldn't worry about corruption.  I just installed new hardware with a fresh install of 20.7 and am experiencing the same behavior.  My guess is it's a bug, you could probably use monit to monitor the PID and start it if it's not running.  Probably what I'll do. 
Logged

FullyBorked

  • Full Member
  • ***
  • Posts: 103
  • Karma: 9
    • View Profile
Re: Services not restarting on reboot
« Reply #5 on: August 02, 2020, 09:55:15 pm »
If I can figure out the syntax to start the service I'll have monit up and working,  so far the commands I can find don't work.  I can monitor the service and test for it's existence, but can't make it it start. 

Code: [Select]
failed to start (exit status 0) -- '/usr/local/sbin/configctl syslog-ng start': Action not found
Logged

FullyBorked

  • Full Member
  • ***
  • Posts: 103
  • Karma: 9
    • View Profile
Re: Services not restarting on reboot
« Reply #6 on: August 02, 2020, 10:11:48 pm »
This is what I have so far.  I cannot figure out the start syntax to put in monit that will actually work.  Maybe someone else can help me make it farther.

Service Test Settings:

Name: Does not exist
Condition: does not exist
Action: Start

Service Settings:

Name: Check_SyslogNG_Process
Type: Process
PID File: /var/run/syslog-ng.pid
Start: ?
Stop: ?
Tests: Does not exist
Logged

hushcoden

  • Full Member
  • ***
  • Posts: 181
  • Karma: 6
    • View Profile
Re: Services not restarting on reboot
« Reply #7 on: August 02, 2020, 11:47:54 pm »
Same issue here, syslog-ng never starts on it's own and I've to manually start it...
Logged

baqwas

  • Newbie
  • *
  • Posts: 46
  • Karma: 2
    • View Profile
Re: Services not restarting on reboot
« Reply #8 on: August 03, 2020, 01:49:37 am »
I had to reboot 20.7 twice and in both occasions, as others have reported, I had to manually start syslog-ng. At least I can start this service unlike snmpd which refuses to start at all.

Kind regards.
Logged

aimdev

  • Newbie
  • *
  • Posts: 46
  • Karma: 2
    • View Profile
Re: Services not restarting on reboot
« Reply #9 on: August 03, 2020, 09:02:05 am »
I had an issue like this after the upgrade, so I re-installed and then setup with a backup.
Both syslogs are running, not checked if they were the issue behind a massive use of the disk over time.

https://forum.opnsense.org/index.php?topic=18358.0
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • 20.7 Production Series »
  • Services not restarting on reboot
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2021 All rights reserved
  • SMF 2.0.17 | SMF © 2019, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2