[Check_mk (english)] Start at boot on CentOS7

Anyone else having problems with start on boot under CentOS 7?

Most stuff has been switched to systemctl (jury is out on my opinion of this), but omd still exists in /etc/init.d and a link in /etc/rc3.d (managed by chkconfig).

[root@host ~]# chkconfig --list omd

Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.

  If you want to list systemd services use 'systemctl list-unit-files'.
  To see services enabled on particular target use
  'systemctl list-dependencies [target]'.

omd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@host ~]#

service omd start or /etc/init.d/omd start after sudo’ing to root starts it up just fine.

···

Thank you,

Lance

Hey,

I had the same problem.

I know it sounds really strange, but for me creating a new rc script in init.d which it isn’t a symbolic link worked.

Didn’t tried to start omd via a system unit.

Hope it helps.

N.

image1159d6.JPG

imagef44634.PNG

···

From: checkmk-en-bounces@lists.mathias-kettner.de [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
On Behalf Of Lance Tost
Sent: mercoledì 29 luglio 2015 19:39
To: checkmk-en checkmk-en@lists.mathias-kettner.de
Subject: [Check_mk (english)] Start at boot on CentOS7

Anyone else having problems with start on boot under CentOS 7?

Most stuff has been switched to systemctl (jury is out on my opinion of this), but omd still exists in /etc/init.d and a link in /etc/rc3.d (managed by chkconfig).

[root@host ~]# chkconfig --list omd

Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.

  If you want to list systemd services use 'systemctl list-unit-files'.
  To see services enabled on particular target use
  'systemctl list-dependencies [target]'.

omd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@host ~]#

service omd start or /etc/init.d/omd start after sudo’ing to root starts it up just fine.

Thank you,
Lance

Yep, that worked. Seems like an OS bug, but I can’t find any other reports of it.

At first I just copied /omd/versions/default/share/omd/omd.init to /etc/init.d/omd. But that would mean I would need to remember to update it when I update omd. So instead, in the /etc/init.d/omd copy, I just replaced the case statement with a call to
/omd/versions/default/share/omd/omd.init $* so the init.d script will never need to be updated.

image1159d6.JPG

imagef44634.PNG

···

Thank you,

Lance Tost

lance.tost@key-stone.com

Sr. Network Administrator

Keystone Automotive Operations, Inc.


From: Tallarico Nicolas nicolas.tallarico@reti.it
Sent: Thursday, July 30, 2015 2:54 AM
To: Lance Tost; checkmk-en
Subject: RE: Start at boot on CentOS7

Hey,

I had the same problem.

I know it sounds really strange, but for me creating a new rc script in init.d which it isn’t a symbolic link worked.

Didn’t tried to start omd via a system unit.

Hope it helps.

N.

Nicolas Tallarico |
Area Sistemi

Via Dante, 6 - 21052 Busto Arsizio (VA)

Tel: +39 0331357585

Fax: +39 0331622869

From: checkmk-en-bounces@lists.mathias-kettner.de [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
On Behalf Of Lance Tost
Sent: mercoledì 29 luglio 2015 19:39
To: checkmk-en checkmk-en@lists.mathias-kettner.de
Subject: [Check_mk (english)] Start at boot on CentOS7

Anyone else having problems with start on boot under CentOS 7?

Most stuff has been switched to systemctl (jury is out on my opinion of this), but omd still exists in /etc/init.d and a link in /etc/rc3.d (managed by chkconfig).

[root@host ~]# chkconfig --list omd

Note: This output shows SysV services only and does not include native

  systemd services. SysV configuration data might be overridden by native

  systemd configuration.

  If you want to list systemd services use 'systemctl list-unit-files'.

  To see services enabled on particular target use

  'systemctl list-dependencies [target]'.

omd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

[root@host ~]#

service omd start or /etc/init.d/omd start after sudo’ing to root starts it up just fine.

Thank you,

Lance

For me, everything works well. Starting centos7, you have to use
systemctl :

Enable the service at boot :
systemctl enable omd

Start the service :
systemctl start omd

Status check
systemctl status omd
···

On 07/30/2015 03:38 PM, Lance Tost
wrote:

    Yep, that worked.  Seems like an OS bug, but I can't find any

other reports of it.

    At first I just copied /omd/versions/default/share/omd/omd.init

to /etc/init.d/omd. But that would mean I would need to
remember to update it when I update omd. So instead, in the
/etc/init.d/omd copy, I just replaced the case statement with a
call to /omd/versions/default/share/omd/omd.init $* so the
init.d script will never need to be updated.

          Thank you,

          Lance Tost


          Sr. Network Administrator

Keystone Automotive Operations, Inc.


From:
Tallarico Nicolas Thursday, July 30, 2015 2:54 AM
Lance Tost; checkmk-en
RE: Start at boot on CentOS7

Hey,

            I had

the same problem.

            I know

it sounds really strange, but for me creating a new rc
script in init.d which it isn’t a symbolic link worked.

            Didn’t

tried to start omd via a system unit.

            Hope

it helps.

N.

Nicolas Tallarico |
Area Sistemi

                                  Via Dante, 6 - 21052

Busto Arsizio (VA)

              Tel:  +39 0331357585

              Fax: +39 0331622869

From:

                []

Lance Tost
mercoledì 29 luglio 2015 19:39
checkmk-en
[Check_mk (english)] Start at boot
on CentOS7

            Anyone else having problems with start on

boot under CentOS 7?

            Most stuff has been switched to systemctl

(jury is out on my opinion of this), but omd still
exists in /etc/init.d and a link in /etc/rc3.d (managed
by chkconfig).

[root@host ~]# chkconfig --list omd

            Note: This output shows SysV services only and does not

include native

                  systemd services. SysV configuration data might be

overridden by native

                  systemd configuration.



                  If you want to list systemd services use

‘systemctl list-unit-files’.

                  To see services enabled on particular target use

                  'systemctl list-dependencies [target]'.



            omd             0:off   1:off   2:on    3:on    4:on   

5:on 6:off

            [root@host ~]#
            service omd start or /etc/init.d/omd start

after sudo’ing to root starts it up just fine.

                    Thank you,

                    Lance



_______________________________________________
checkmk-en mailing list
We’ll meet in Munich for the 2nd Check_MK Conference!
Book your place now and be part of it.
October 18th-20th, 2015

lance.tost@key-stone.com
nicolas.tallarico@reti.it
Sent:
To:
Subject:checkmk-en-bounces@lists.mathias-kettner.demailto:checkmk-en-bounces@lists.mathias-kettner.deOn Behalf Of
Sent:
To:checkmk-en@lists.mathias-kettner.de
**Subject:**checkmk-en@lists.mathias-kettner.dehttp://lists.mathias-kettner.de/mailman/listinfo/checkmk-enhttp://mathias-kettner.com/conference

On mine, I get this and it won’t start unless I create a script (not symlink) in /etc/init.d.

[root@host ~]# systemctl is-enabled omd
omd.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig omd --level=5
enabled

Doing an enable again anyway gives me this:

[root@host ~]# systemctl enable omd
omd.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig omd on
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:

  1. A unit may be statically enabled by being symlinked from another unit’s
    .wants/ or .requires/ directory.
  2. A unit’s purpose may be to act as a helper for some other unit which has
    a requirement dependency on it.
  3. A unit may be started when needed via activation (socket, path, timer,
    D-Bus, udev, scripted systemctl call, …).
    [root@host ~]#

image1159d6.JPG

imagef44634.PNG

···

Thank you,

Lance


From: david@serreli.net david@serreli.net
Sent: Monday, August 3, 2015 4:55 PM
To: Lance Tost; Tallarico Nicolas; checkmk-en
Subject: Re: [Check_mk (english)] Start at boot on CentOS7

For me, everything works well. Starting centos7, you have to use systemctl :

Enable the service at boot :

systemctl enable omd

Start the service :

systemctl start omd

Status check

systemctl status omd

On 07/30/2015 03:38 PM, Lance Tost wrote:

Yep, that worked. Seems like an OS bug, but I can’t find any other reports of it.

At first I just copied /omd/versions/default/share/omd/omd.init to /etc/init.d/omd. But that would mean I would need to remember to update it when I update omd. So instead, in the /etc/init.d/omd copy, I just replaced the case statement with a call to
/omd/versions/default/share/omd/omd.init $* so the init.d script will never need to be updated.

Thank you,

Lance Tost

lance.tost@key-stone.com

Sr. Network Administrator

Keystone Automotive Operations, Inc.


From: Tallarico Nicolas
nicolas.tallarico@reti.it
Sent: Thursday, July 30, 2015 2:54 AM
To: Lance Tost; checkmk-en
Subject: RE: Start at boot on CentOS7

Hey,

I had the same problem.

I know it sounds really strange, but for me creating a new rc script in init.d which it isn’t a symbolic link worked.

Didn’t tried to start omd via a system unit.

Hope it helps.

N.

Nicolas Tallarico |
Area Sistemi

Via Dante, 6 - 21052 Busto Arsizio (VA)

Tel: +39 0331357585

Fax: +39 0331622869

From:
checkmk-en-bounces@lists.mathias-kettner.de [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
On Behalf Of Lance Tost
Sent: mercoledì 29 luglio 2015 19:39
To: checkmk-en
checkmk-en@lists.mathias-kettner.de
Subject: [Check_mk (english)] Start at boot on CentOS7

Anyone else having problems with start on boot under CentOS 7?

Most stuff has been switched to systemctl (jury is out on my opinion of this), but omd still exists in /etc/init.d and a link in /etc/rc3.d (managed by chkconfig).

[root@host ~]# chkconfig --list omd

Note: This output shows SysV services only and does not include native

  systemd services. SysV configuration data might be overridden by native

  systemd configuration.

  If you want to list systemd services use 'systemctl list-unit-files'.

  To see services enabled on particular target use

  'systemctl list-dependencies [target]'.

omd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

[root@host ~]#

service omd start or /etc/init.d/omd start after sudo’ing to root starts it up just fine.

Thank you,

Lance

_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
[http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.mathias-2Dkettner.de_mailman_listinfo_checkmk-2Den&d=AwMF-g&c=rxuyg758I4Zd3CDHNny_Hw&r=IG1JnIFZjjAeb-dpz2SPNF_6BaSzaPzu56FYglLqpI0&m=NYFe1ZNHq2opg-CShAWzv3ZtgcGZnSwIfmvWMtEjGvI&s=2ZTQwzQwY4jPKLVT0pPHXDlBIMCqfs99U2o5oKqxFMA&e=)

We’ll meet in Munich for the 2nd Check_MK Conference!
Book your place now and be part of it.
October 18th-20th, 2015
[http://mathias-kettner.com/conference](https://urldefense.proofpoint.com/v2/url?u=http-3A__mathias-2Dkettner.com_conference&d=AwMF-g&c=rxuyg758I4Zd3CDHNny_Hw&r=IG1JnIFZjjAeb-dpz2SPNF_6BaSzaPzu56FYglLqpI0&m=NYFe1ZNHq2opg-CShAWzv3ZtgcGZnSwIfmvWMtEjGvI&s=SrvYqqXz1TBVAqt4Jt0b7XUMgElI7co0u7BuAjeiQKA&e=)