06-17-2016
No id 10
In All runlevels always runing
10 More Discussions You Might Find Interesting
1. Solaris
Well, i changed my lan card and finally i got it up and running, i have /etc/resolv.conf with
domain xxx.xxx
nameserver xxx.xxx.xxx.xxx
and it was working with me earlier with the old lan card, with the new one i added it ip using auto-dhcp and its received an ip from my dhcp and it can ping... (4 Replies)
Discussion started by: XP_2600
4 Replies
2. HP-UX
Hello all!
During a network audit, I came across a host running a service on a high port (34604). Not recognizing the port, I used a tool called 'amap' (THC-AMAP - fast and reliable application fingerprint mapper) to fingerprint it.
This tool also did not fingerprint it correctly, but did... (2 Replies)
Discussion started by: dan.king
2 Replies
3. Shell Programming and Scripting
How can I tell, in a shell script, if a certain service is running? I know how to do this on the command line, but not in a script. Is an error thrown somehow that I can check?
Thanks. (6 Replies)
Discussion started by: daflore
6 Replies
4. UNIX for Dummies Questions & Answers
dears
am having solaris 10, and i would like to know if the NTP service is running when the OS staritng?on the other hand how can i make it start at the boot up?note the ntp is managed by the SMF in solaris 10.
thanks a lot (2 Replies)
Discussion started by: thehero
2 Replies
5. Solaris
Hi,
I am getting following service error on one of the sparc servers running solaris 10 -
Code :
$ svcs -a | grep "maintenance"
maintenance Nov_08 svc:/application/management/sma:default
$ svcs -xv
svc:/application/management/sma:default (net-snmp SNMP daemon)
State: maintenance... (8 Replies)
Discussion started by: sunadmin
8 Replies
6. Linux
We are using TeamSite application. Its a content management system application.
How can I check if TeamSite service is running or not using ksh onn Linux platform ? On Windows its easy, I can do services.msc and entire list will come up. How to check it in Linux ?
I tried using 'ps -ef', it... (4 Replies)
Discussion started by: paramshamnani
4 Replies
7. Red Hat
Hello,
I'l like to create a script that restart a service (/etc/init.d/httpd restart) and also check if after restart the service is actually running. Sometimes it happen that at the first try the service fails to restart.
Thanks (2 Replies)
Discussion started by: bazzola
2 Replies
8. Solaris
Hi,
For audit reasons, I need to stop the web server service in some Solaris servers.
The port that is listening for this service is port 10000.
This is the output that shows the port 10000 is open in the server :
# netstat -an | grep 10000
10.70.21.144.10000 10.70.21.133.58130 49640... (6 Replies)
Discussion started by: anaigini45
6 Replies
9. Solaris
Hi
I have installed using tar a program called rabbitmq, and when I try to start it according to documentation, I get the following error:
/usr/local/sbin/rabbitmq_server-3.6.14/sbin# ./rabbitmq-server
./rabbitmq-server: .: local: not found ... (7 Replies)
Discussion started by: fretagi
7 Replies
10. Shell Programming and Scripting
Hi
I have created a PowerShell script which successfully checks whether windows service pgsql-9.2 is running.
I have tried to call that PowerShell script with a shell/bash script within a LINUX machine but have been unsuccessful.
Is there a way of a shell/Perl script to check whether a... (5 Replies)
Discussion started by: simpsa27
5 Replies
LEARN ABOUT NETBSD
runlevel
RUNLEVEL(8) runlevel RUNLEVEL(8)
NAME
runlevel - Print previous and current SysV runlevel
SYNOPSIS
runlevel [options...]
OVERVIEW
"Runlevels" are an obsolete way to start and stop groups of services used in SysV init. systemd provides a compatibility layer that maps
runlevels to targets, and associated binaries like runlevel. Nevertheless, only one runlevel can be "active" at a given time, while systemd
can activate multiple targets concurrently, so the mapping to runlevels is confusing and only approximate. Runlevels should not be used in
new code, and are mostly useful as a shorthand way to refer the matching systemd targets in kernel boot parameters.
Table 1. Mapping between runlevels and systemd targets
+---------+-------------------+
|Runlevel | Target |
+---------+-------------------+
|0 | poweroff.target |
+---------+-------------------+
|1 | rescue.target |
+---------+-------------------+
|2, 3, 4 | multi-user.target |
+---------+-------------------+
|5 | graphical.target |
+---------+-------------------+
|6 | reboot.target |
+---------+-------------------+
DESCRIPTION
runlevel prints the previous and current SysV runlevel if they are known.
The two runlevel characters are separated by a single space character. If a runlevel cannot be determined, N is printed instead. If neither
can be determined, the word "unknown" is printed.
Unless overridden in the environment, this will check the utmp database for recent runlevel changes.
OPTIONS
The following option is understood:
--help
Print a short help text and exit.
EXIT STATUS
If one or both runlevels could be determined, 0 is returned, a non-zero failure code otherwise.
ENVIRONMENT
$RUNLEVEL
If $RUNLEVEL is set, runlevel will print this value as current runlevel and ignore utmp.
$PREVLEVEL
If $PREVLEVEL is set, runlevel will print this value as previous runlevel and ignore utmp.
FILES
/run/utmp
The utmp database runlevel reads the previous and current runlevel from.
SEE ALSO
systemd(1), systemd.target(5), systemctl(1)
systemd 237 RUNLEVEL(8)