Hi
I'm know SUSE not so deeply so can't manage following trouble.
There is openSUSE 12.2
I install GAMMU-SMSD programm. It works well.
I want that this programm will run automatically during OS booting.
My steps:
1. Run chkconfig --add gammu-smsd
2. Then check in /etc/init.d/rc5.d (defalt runlevel is 5) and see
lrwxrwxrwx 1 root root 13 февр. 15 22:33 S10gammu-smsd -> ../gammu-smsd
lrwxrwxrwx 1 root root 13 февр. 15 22:33 K01gammu-smsd -> ../gammu-smsd
2. then reboot and find out that this service is not run
3. check /var/log/messages and find out:
Feb 15 22:35:53 linux-6i2j gammu-smsd[588]: Starting Gammu SMS Daemon gammu-smsd
Feb 15 22:35:53 linux-6i2j gammu-smsd[588]: /etc/init.d/gammu-smsd: line 84: start-stop-daemon: command not found
4. then check /etc/init.d/gammu-smsd line 84:
# Function that starts the daemon/service
#
do_start()
{
# Return
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ #it's line 84
|| return 1
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
$DAEMON_ARGS \
|| return 2
}
Here my limit of knowledge... I see that this file /etc/init.d/gammu-smsd is wrong, but don't know how to repair it. It was created automatically.
Please help me to solve problem. Thank you.
No comments:
Post a Comment