mirror of
https://pagure.io/numad.git
synced 2025-01-20 15:00:43 +00:00
update initscript: additional minor fixes
This commit is contained in:
parent
b9ea974968
commit
1584429648
@ -15,6 +15,11 @@
|
||||
# Description:
|
||||
### END INIT INFO
|
||||
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "This script can be run by root only. Exiting."
|
||||
exit 4
|
||||
fi
|
||||
|
||||
# Source function library.
|
||||
. /etc/rc.d/init.d/functions
|
||||
|
||||
@ -32,7 +37,7 @@ start() {
|
||||
[ -f $config ] || exit 6
|
||||
echo -n $"Starting $prog: "
|
||||
. $config
|
||||
daemon "$exec -i $config"
|
||||
daemon "$exec -i $INTERVAL"
|
||||
retval=$?
|
||||
echo
|
||||
[ $retval -eq 0 ] && touch $lockfile
|
||||
|
Loading…
Reference in New Issue
Block a user