![]() |
#1 | |
Junior Member
Join Date: Jun 2010
Posts: 23
|
sc_serv init script for Centos
I got tired of running sc_serv in screen and since build 123 supports a pidfile option, I wrote an init script for centos.
It uses the daemon feature of sc_serv and works very well for me. I've also attached the file so the indentations are kept. Copy the file to /etc/init.d and then run chkconfig --add sc_serv You'll want to change the "$daemonuser" variable to whatever user you want to run the sc_serv daemon and you should modify the "$progdir" to where your sc_serv binary is kept. If you keep your config someplace other than the same directory the sc_serv binary is located, you can change "$conffile" also. Useful comments are welcome. Quote:
|
|
![]() |
![]() |
![]() |
#2 |
Join Date: Sep 2003
Posts: 27,873
|
is good to see some use of that feature
![]() |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Jun 2010
Posts: 23
|
It looks like the newer version of sc_serv is creating the pid file in the daemon user's homedir rather than the $progdir location. The docs say "The default is to create the sc_serv_<portbase>.pid file in the same folder as the DNAS is being run from." I guess I'll have to explicitly specify the pidfile in the conf file.
|
![]() |
![]() |
![]() |
#4 |
Major Dude
Join Date: Mar 2011
Posts: 576
|
|
![]() |
![]() |
![]() |
#5 |
Join Date: Sep 2003
Posts: 27,873
|
dgcurtis: is it definitely with build 167 that you're seeing the change ?
|
![]() |
![]() |
![]() |
#6 |
Junior Member
Join Date: Jun 2010
Posts: 23
|
I didn't see that you had replied to this thread and I just logged in to see this.
Yeah, I definitely noticed this directly after upgrading to 167. I run my shoutcast server in a VM by itself so I don't think anything else would have affected it unless they possibly changed something in a CentOS 6 upgrade. Also, just to be sure, I went back and downgraded to 123 and it the pid is in the correct directory with specifying it in the conf. Thanks |
![]() |
![]() |
![]() |
#7 |
Join Date: Sep 2003
Posts: 27,873
|
that bug was fixed in the internal builds after you'd reported it and is an issue just with that build.
|
![]() |
![]() |
![]() |
#8 |
Junior Member
Join Date: Jun 2010
Posts: 23
|
Ah, cool. It wasn't a big deal but nice to know it's fixed for future releases.
Thanks |
![]() |
![]() |
![]() |
|
Tags |
centos, init, linux, script, sc_serv |
Thread Tools | Search this Thread |
Display Modes | |
|
|