Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548302 - net-analyzer/icinga2 - improve init script
Summary: net-analyzer/icinga2 - improve init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-01 09:07 UTC by Sebastian Wieseler
Modified: 2015-05-04 01:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Wieseler 2015-05-01 09:07:06 UTC
net-analyzer/icinga2-2.2.3-r1::gentoo

improving the init script to allow "reloading" instead of stop/start:

/etc/init.d/icinga2 (add):

extra_commands="reload"
reload() {
    checkconfig || return 1

    ebegin "Reloading icinga2"
    /bin/kill -HUP $(/bin/cat "${ICINGA2_PID_FILE}")

    local retval=$?
    if [ $retval -ne 0 ]; then
        ewarn "Error reloading icinga2."
    fi
    eend $retval
}

Thanks for reviewing this!
Best Regards, kickino
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2015-05-03 05:24:51 UTC
fixed in tree :D
Comment 2 Sebastian Wieseler 2015-05-04 01:52:19 UTC
Woooow. Cool. Thank you very much! :)