Results 1 to 10 of 10

Thread: GAMMU_SMSD service can't start during booting

  1. #1

    Default GAMMU_SMSD service can't start during booting

    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.

  2. #2
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: GAMMU_SMSD service can't start during booting

    Quote Originally Posted by berleo View Post
    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.
    We use systemd these days and not systemV so the old ways may not work. Have a look at my blog on how I got after.local to work, which you could add your file to or how I changed the dkms application into a systemd service.

    systemd and using the after.local script in openSUSE 12.1/12.2: https://forums.opensuse.org/blogs/jd...nsuse-12-1-71/

    DKMS, systemd & Virtual Box - How to get Dynamic Kernel Module Support to work in openSUSE 12.1/12.2: https://forums.opensuse.org/blogs/jd...suse-12-1-100/

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  3. #3

    Default Re: GAMMU_SMSD service can't start during booting

    Quote Originally Posted by jdmcdaniel3 View Post
    systemd and using the after.local script in openSUSE 12.1/12.2: https://forums.opensuse.org/blogs/jd...nsuse-12-1-71/
    I use this way and service is runnig well.

    Please confirm my doubt. Second way is better because script /etc/init.d/gammu-smsd is more complex and informative then my command in boot.local:
    /usr/bin/gammu-smsd --config /etc/gammu-smsdrc --pid /var/run/gammu-smsd.pid --daemon

    Am I right?

  4. #4
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Question Re: GAMMU_SMSD service can't start during booting

    Quote Originally Posted by berleo View Post
    I use this way and service is runnig well.

    Please confirm my doubt. Second way is better because script /etc/init.d/gammu-smsd is more complex and informative then my command in boot.local:
    /usr/bin/gammu-smsd --config /etc/gammu-smsdrc --pid /var/run/gammu-smsd.pid --daemon

    Am I right?
    Actually boot.local works, but is about the same as my example for after.local due to how systemd works, but the real test is does your application work or not work when you move its startup somewhere else such as boot.local or after.local?

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  5. #5

    Default Re: GAMMU_SMSD service can't start during booting

    Now I use boot.local and programm is worked. So problem is solved - thank you for help.

  6. #6
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: GAMMU_SMSD service can't start during booting

    Quote Originally Posted by berleo View Post
    Now I use boot.local and programm is worked. So problem is solved - thank you for help.
    I am happy to hear of your success then. Let us know if you need further assistance in using openSUSE.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: GAMMU_SMSD service can't start during booting

    On 2013-02-16 17:16, berleo wrote:
    >
    > Now I use boot.local and programm is worked. So problem is solved -
    > thank you for help.


    Where did you get that gammu? If it was from openSUSE, then please
    report the issue in a bugzilla.

    Even if it wasn't from openSUSE, a bugzilla would help. Systemd people
    say that everything should work as it did...

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

  8. #8

    Default Re: GAMMU_SMSD service can't start during booting

    Quote Originally Posted by robin_listas View Post
    On 2013-02-16 17:16, berleo wrote:
    Where did you get that gammu? If it was from openSUSE, then please
    report the issue in a bugzilla.
    It's from openSUSE.
    I'll try to create bug-report, but I'm not sure - this bug is not relate to openSUSE itself.

  9. #9
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: GAMMU_SMSD service can't start during booting

    On 2013-02-17 09:36, berleo wrote:
    >
    > robin_listas;2527758 Wrote:
    >> On 2013-02-16 17:16, berleo wrote:
    >> Where did you get that gammu? If it was from openSUSE, then please
    >> report the issue in a bugzilla.
    >>

    > It's from openSUSE.
    > I'll try to create bug-report, but I'm not sure - this bug is not
    > relate to openSUSE itself.


    It does. It relates to a package provided by openSUSE.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

  10. #10

    Default Re: GAMMU_SMSD service can't start during booting

    I already created bug-report. So wait for response))

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •