Tag Info

Hot answers tagged

44

The data you are looking should not, by default, be located in "C:\Documents and Settings\Default User". That is the location of the default user profile, which is the template for new user profiles. Its only function is to be copied to a new folder for use as a user profile when a user logs onto the computer for the first time. If the service is ...


41

Hi launchctl(8) is your friend. Just keep in mind that some of the services (sshd for example) are disabled in the configuration file so you will need to use the '-w'switch when loading them. Here is a sshd example: $sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist You can stop the service using the 'unload' subcommand. $sudo ...


19

There is an easy way to get the information you are asking for (but it does require a slight change to your system). I am posting my answer to a similar question, http://serverfault.com/questions/2786/ (perhaps the two questions should be merged?): Split each service to run in its own SVCHOST.EXE process and the service consuming the CPU cycles will be ...


17

A service in manualmode can be launched by Windows when it's needed. For example this might be the case when another service depends on it. When you set such a service (which others depend on) to disabled then the service depending on it will fail to start. Services in manual mode do not take any resources as long as they are not started by the system. So ...


13

git-daemon under Debian is managed by runit. sv stop git-daemon should do it.


12

Have a look at the update-rc.d man page. The third paragraph of the section named Installing Init Script Links reads … A common system administration error is to delete the links with the thought that this will "disable" the service, i.e., that this will prevent the service from being started. However, if all links have been deleted then the next ...


12

Not a bad idea at all. IMHO, the opposite is true: You need a good reason why the official packages are not sufficient. Some problems: With enterprise distributions (RHEL, SLES) you'll lose support. You are responsible for tracking security fixes. Normally, this is done by the security teams of the distribution. It takes time, sometimes a lot, to get ...


10

I don't know about the "correct" way, but I always use invoke-rc.d, so e.g. to restart MySQL: sudo invoke-rc.d mysql restart


10

Yes, of course. The job of a monitoring system is to ensure that the business requirements are currently being met by the IT infrastructure, whatever those requirements are. My gut feeling is that there's no easy limit (well, 65535) to the number of ports you're monitoring to ensure that they don't suddenly become open, and that the best way to achieve ...


8

The port itself (8088) was originally registered to Radan for vendor-specific HTTP traffic. It has since been co-opted by the general public for use for proxies (along with 8000, 8080, 8888). I have a feeling it's not Nginx identifying itself as Radan, but that the software you are using to scan is just referencing the IANA port list.


8

You can always just invoke the startup scripts directly (e.g., /etc/init.d/foo restart). This works on RedHat variants as well, although the path is slightly different there (/etc/rc.d/init.d, although I believe /etc/init.d is a symlink to it as well).


8

You could use the built-in tasklist command and filter by service name (/fi switch), for example: tasklist /fi "services eq TermService" Output: Image Name PID Session Name Session# Mem Usage ========================= ======== ================ =========== ============ svchost.exe 2940 Console ...


8

Try deleting it's entry from regedit at: HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services Make sure you reboot afterwards. Also: Try removing the service while in safe mode.


8

I don't know if there is one on the web, but you can do service-object tcp ? or service-object udp ? and it will list out every service that it knows about. If you want it for future reference just copy and paste it out of your terminal and save it to a text file.


8

Short answer - you can't. Long answer - you can monkey with permissions on specific registry keys, folders, etc such that it is more difficult for a local admin to remove the product. If you want to go this way I recommend the uninstall registry keys under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall. Unless someone has the ...


8

I am not a linux guru, more of a noob actually, but in order to execute the shutdown script you must create a lock file in /var/lock/subsys/ folder in your startup script. I found the answer here: CentOS Forum Script example: #!/bin/sh # chkconfig: 345 98 11 # description: my auto start-stop script. echo "my service is doing something :)" >> ...


7

The WinPCap services is known as "NPF" (NetGroup Packet Filter), you can start/stop it on command line with c:\>net start npf The NetGroup Packet Filter Driver service was started successfully. C:\>net stop npf The NetGroup Packet Filter Driver service was stopped successfully. To find it in a GUI, you'll have to open "Properties" for "My ...


7

It sounds like there is a group policy that defines the accounts that are granted Log on as a Service. Because you are an administrator you have permission to grant this privilege, but when the group policy re-applies the privilege will get removed. The next time the service stops it won't be able to start. You should either change the scope / filtering ...


7

Create a new config file in /etc/redis/redis-new.conf (copied from redis.conf). Change the pidfile, port, logfile, dir (for the default db) Create a new file /etc/init.d/redis-server-new (copied from the file redis-server). Change the name, pidfile (same as in the config file in 1), deamon_args (the path to the config file in step 1). Make the new file ...


7

Push email, in terms of cellular connected devices, refers to the ability of a server to contact a remote device. A TCP connection is expensive in terms of power and bandwidth, so the carriers have, for some devices, given access to the cellular control channel. This channel is normally used for base station <--> cellular device communications so ...


7

You have a few options: 1) make mysql inform Upstart that it has started by emitting an event initctl emit mysql-started" or similar. This could be handled by adding the initctl invocation to /etc/init.d/mysql. 2) Disable mysql from the normal SysV runlevels and create a wrapper Upstart job that starts it (not this doesn't handle stopping - just an ...


7

How is this scenario typically handled? You schedule downtime and perform the maintenance required. Seriously. Expecting your service to be available 100%, 24x7x365 is not reasonable.


6

iniscripts can do whatever they want. Of course it makes sense not to introduce new dependencies, just for the initscripts. grep however is fine on pretty much any system that's posix/susv3 compatible (linux, bsd, solaris, other derivatives). For more utilities that should always be there, see ...


6

Sorry, the Linux distributions (in their infinite quest to differentiate themselves and make life difficult for system administrators) have each standardized on doing the startup thing differently. The closest thing to a "cross-distribution standard" for Linux startup scripts would be the System V style runlevels. These are deprecated on some systems (for ...


6

reload and force-reload are really just an alias for the same commands. graceful | reload | force-reload) if ! $APACHE2CTL configtest > /dev/null 2>&1; then $APACHE2CTL configtest || true log_end_msg 1 exit 1 fi log_daemon_msg "Reloading web server config" ...


6

There's no simple sshd equivalent to apache's VirtualHosts. Typically what you'll need to do, though, is configure the ssh settings for each user to chroot them into a single folder hierarchy. Regarding your other question, what exactly do you mean by "disallow all other service requests"?


6

(tl;dr still responding to ping is an expected behaviour, check your memory usage) ICMP echo requests (i.e. ping) are handled by the in-kernel networking stack, with no other dependency. The kernel is known as being "memory resident", which means it will always be kept in RAM, and can't be swapped to disk like a regular application can. This means in ...


6

The question mark in the output of service --status-all is printed when the /usr/sbin/service script does not find status line in the case structure in the related script under /etc/init.d. If you look at the /usr/sbin/service script, you can find an if statement like this: if ! grep -qs "\Wstatus)" "$SERVICE"; then #printf " %s %-60s %s\n" "[?]" ...



Only top voted, non community-wiki answers of a minimum length are eligible