killproc function not working ... or down the rabbit hoie

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

killproc function not working ... or down the rabbit hoie

Postby linuxdad » Dec 8th, '13, 03:15

Further continuing down the rabbit hole, I find the following:

There is a difference in starting the daemon using the fully qualified and relevant pathways.
Code: Select all
[root@ns init.d]# pwd
/etc/init.d
[root@ns init.d]# ./clamd start
Starting Clam AntiVirus Daemon:                                 [  OK  ]
NOTE: this relate startup method works perfectly.


Whereas using the fully qualified path to the init script seems to perform a different startup script.
Code: Select all
[root@ns init.d]# /etc/init.d/clamd start
Starting clamd (via systemctl):  Warning: Unit file of clamd.service changed on disk, 'systemctl --system daemon-reload' recommended.


I cannot seem to understand why the difference of starting up the process. Why is this different, and why does the fully qualified pathway not seem to restart the daemon as expected?
Last edited by isadora on Dec 8th, '13, 07:45, edited 1 time in total.
Reason: Command-output placed between [CODE]-tags, to keep the forum readable. ;)
Albert E. Whale, CEH CHS CISA CISSP
President - Chief Security Officer
IT Security, Inc. - http://www.IT-Security-inc.com
Pittsburgh, PA
Email: Albert.Whale@IT-Security-inc.com
linuxdad
 
Posts: 123
Joined: Nov 17th, '13, 21:14

Re: killproc function not working ... or down the rabbit hoi

Postby doktor5000 » Dec 8th, '13, 18:53

linuxdad wrote:I cannot seem to understand why the difference of starting up the process. Why is this different, and why does the fully qualified pathway not seem to restart the daemon as expected?


You could report the difference between absolute and relative invocation as a bug, after searching if it hasn't been reported yet already: https://wiki.mageia.org/en/How_to_report_a_bug_properly

But why don't you use the service command? service foo start Or use systemctl? Maybe you want to have a look at http://fedoraproject.org/wiki/SysVinit_ ... Cheatsheet

And I don't understand why you mention start and restart (see bold marked parts of quote) - if you only say start, it will not restart the running service, why should it?

Realted, what are you referencing in the subject? The killproc() function or the killproc standalone binary?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18070
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest