Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unable to start /usr/lib64/sa/sadc as a service [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
njcwotx
Guru
Guru


Joined: 25 Feb 2005
Posts: 499
Location: Texas

PostPosted: Fri Apr 05, 2013 7:59 pm    Post subject: unable to start /usr/lib64/sa/sadc as a service [Solved] Reply with quote

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
View user's profile Send private message
njcwotx
Guru
Guru


Joined: 25 Feb 2005
Posts: 499
Location: Texas

PostPosted: Fri Apr 05, 2013 8:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
njcwotx
Guru
Guru


Joined: 25 Feb 2005
Posts: 499
Location: Texas

PostPosted: Mon Apr 08, 2013 11:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum