Changeset - 712b95e03b94
[Not reviewed]
0 1 0
Chel Sea (chain) - 12 years ago 2013-08-08 02:48:18
chain@rpgfiction.net
fix init script for tmpfiles.d
1 file changed with 0 insertions and 4 deletions:
0 comments (0 inline, 0 general)
net-analyzer/centreon/files/centreon.initd
Show inline comments
 
#!/sbin/runscript
 
# Copyright 1999-2006 Gentoo Foundation
 
# Distributed under the terms of the GNU General Public License v2
 
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/centreon/files/ods.initd,v 1.1 2008/03/28 18:38:07 hollow Exp $
 

	
 
depend() {
 
	need mysql
 
}
 

	
 
start() {
 
	ebegin "Starting CentCore"
 
    if [ ! -e /run/centreon ]; then
 
		mkdir /run/centreon
 
		chown nagios:nagios /run/centreon
 
	fi
 
	start-stop-daemon --start --pidfile /run/centreon/centcore.pid \
 
		--user nagios --chuid nagios \
 
		--group nagios \
 
		--startas /usr/sbin/centcore -- \
 
		>> /var/log/centreon/centcore.log 2>&1
 
	eend
 
        ebegin "Starting CentStorage Collector"
 
        start-stop-daemon --start --pidfile /run/centreon/centstorage.pid \
 
                --user nagios --chuid nagios \
 
                --group nagios \
 
		--startas /usr/sbin/centstorage -- \
 
		>> /var/log/centreon/centstorage.log 2>&1
0 comments (0 inline, 0 general)