HEX
Server: Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
System: Linux Kou-Etsu-Dou 4.4.59+ #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021 x86_64
User: hosam (1026)
PHP: 7.2.29
Disabled: NONE
Upload Files
File: //etc.defaults/init/irqbalance.conf
description     "Service for irq balance"
author "Business Platform Team"

start on (runlevel 1 or stopping numanod)
stop on (runlevel [06] or starting numanod)

expect fork

console log

pre-start script
	if /usr/syno/sbin/synoservice --status numanod > /dev/null 2>&1; then
		echo "numanod is running, irqbalance should not run at the same time"
		stop; exit 0
	fi
	echo "start irqbalance"
end script

script
	exec /usr/sbin/irqbalance
end script

post-stop script
	echo "stop irqbalance"
end script 

# vim:ft=upstart