Codes for Restarting Services
Codes for Restarting Services
Hello,
I was wondering what commands you time in to perform services in steamcast, such as reloading the playing, deleting the logs, etc.
Thanks,
Boston-
I was wondering what commands you time in to perform services in steamcast, such as reloading the playing, deleting the logs, etc.
Thanks,
Boston-
-
- Posts: 5
- Joined: Wed Jun 01, 2005 2:57 pm
I tried the "SIGUSR1" command two ways (improperly I guess)
a:
[root@plain nsv]# SIGUSR1
-bash: SIGUSR1: command not found
[root@plain nsv]#
b:
[root@plain nsv]# ./sc_nsv SIGUSR1
/**************************************************/
/** SHOUTcast NSV Source v1.0.0/posix
/** Written by: Jay Krivanek
/** www.radiotoolbox.com/sc_nsv/
/**************************************************/
WARNING: configuaration file could not be loaded, assuming defaults
Source Program Started...
pid: 5482
Loading Playlist playlist.plo
Playlist is in object mode
Warning: 'current' in clock not defined, ignoring.
Warning: 'classic' in clock not defined, ignoring.
Loaded 4 Objects
currents: 21 items
recurrents: 44 items
clock: 7 items
Connecting to 127.0.0.1:8000
Error: Could not bind to port.
[root@plain nsv]#
a:
[root@plain nsv]# SIGUSR1
-bash: SIGUSR1: command not found
[root@plain nsv]#
b:
[root@plain nsv]# ./sc_nsv SIGUSR1
/**************************************************/
/** SHOUTcast NSV Source v1.0.0/posix
/** Written by: Jay Krivanek
/** www.radiotoolbox.com/sc_nsv/
/**************************************************/
WARNING: configuaration file could not be loaded, assuming defaults
Source Program Started...
pid: 5482
Loading Playlist playlist.plo
Playlist is in object mode
Warning: 'current' in clock not defined, ignoring.
Warning: 'classic' in clock not defined, ignoring.
Loaded 4 Objects
currents: 21 items
recurrents: 44 items
clock: 7 items
Connecting to 127.0.0.1:8000
Error: Could not bind to port.
[root@plain nsv]#
SIGHUP isn't a command itself, but rather just an argument in another command. You typicall use kill to either kill a process, or otherwise interrupt it and have it do something like reload a conf file and continue.
Typical syntax for a SIGHUP is as follows (Jay can elaborate or correct if I'm wrong. I haven't found this info in his docs.):
# kill -HUP pid#
substitute pid# with the process number of your steamcast. The above will flush the log files according to Jay.
You can find out the pid# by either reading the file that stores the pid according to your conf file, or by doing something like this:
# ps ax | grep steamcast
Typical syntax for a SIGHUP is as follows (Jay can elaborate or correct if I'm wrong. I haven't found this info in his docs.):
# kill -HUP pid#
substitute pid# with the process number of your steamcast. The above will flush the log files according to Jay.
You can find out the pid# by either reading the file that stores the pid according to your conf file, or by doing something like this:
# ps ax | grep steamcast
-
- Posts: 5
- Joined: Wed Jun 01, 2005 2:57 pm