View previous topic :: View next topic |
Author |
Message |
njcwotx Guru
Joined: 25 Feb 2005 Posts: 587 Location: Texas
|
Posted: Fri Apr 05, 2013 7:59 pm Post subject: unable to start /usr/lib64/sa/sadc as a service [Solved] |
|
|
I have been trying to start sysstat as a service.
I can manually type:
Code: | /var/lib64/sa/sadc -S XALL 10 - |
and it works, but the process wont release or run in background.
so, I manually type:
Code: | nohup /var/lib/64/sa/sadc -S XALL 10 - & |
and it works as desired.
Trying to put this into the inti script:
Code: | start-stop-daemon --start --exec /usr/lib64/sa/sadc -S XALL 10 - |
I get this in return:
Code: |
* Writing a dummy startup record using sadc (see sadc(8))... ...
Usage: /usr/lib64/sa/sadc [ options ] [ <interval> [ <count> ] ] [ <outfile> ]
Options are:
[ -C <comment> ] [ -F ] [ -L ] [ -V ]
[ -S { INT | DISK | IPV6 | POWER | SNMP | XDISK | ALL | XALL } ]
* start-stop-daemon: failed to start `/usr/lib64/sa/sadc' [ !! ]
* ERROR: sysstat failed to start |
what in the command causes the hang up? _________________ Drinking from the fountain of knowldege.
Sometimes sipping.
Sometimes gulping.
Always thirsting.
Last edited by njcwotx on Mon Apr 08, 2013 11:27 pm; edited 1 time in total |
|
Back to top |
|
|
njcwotx Guru
Joined: 25 Feb 2005 Posts: 587 Location: Texas
|
Posted: Fri Apr 05, 2013 8:11 pm Post subject: |
|
|
I added a -- after sadc like this...
Code: | start-stop-daemon --start --exec /usr/lib64/sa/sadc -- -S XALL 10 - |
and it appears to work correctly. but I tried this a few times earlier and it failed, but its working now. Ill try same on a couple of other boxes and see if it continues to work. _________________ Drinking from the fountain of knowldege.
Sometimes sipping.
Sometimes gulping.
Always thirsting. |
|
Back to top |
|
|
njcwotx Guru
Joined: 25 Feb 2005 Posts: 587 Location: Texas
|
Posted: Mon Apr 08, 2013 11:27 pm Post subject: |
|
|
When I was getting some failures earlier
I was including --pidfile /var/run/sadc.pid, appearently this does not work well with the above line. _________________ Drinking from the fountain of knowldege.
Sometimes sipping.
Sometimes gulping.
Always thirsting. |
|
Back to top |
|
|
|