Tag Info

Hot answers tagged

55

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 ...


54

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 ...


31

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 ...


14

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 ...


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

Create a new config file /etc/redis/redis-new.conf (copied from redis.conf) and change these fields in the new config pidfile port logfile dir (for the default db) Create a new file /etc/init.d/redis-server-new (copied from the file redis-server) and change these fields in the new file name pidfile (same as in the config file in step 1) deamon_args (the ...


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

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 ...


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

In short: ls /etc/rc*.d This shows you what starts at which runlevel, and within each level the order is determined by the number after the letter (K is Kill, S is start). You can configure what starts at each runlevel with sysv-rc-conf, which is installable with apt. e.g. on my system apache2 is symlinked in rc5.d as "S20apache2". A link in the same ...


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 -k option should do the trick. From the manpage of nc(1): -k Forces nc to stay listening for another connection after its current connection is completed. It is an error to use this option without the -l option. Alternatively, use socat, which is more targeted to your usecase of a proxy server. A random TCP-forwarder example ...


8

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 ...


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

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

You can bring down the network interface and bring it back up again, that should accomplish the same thing. sudo ifconfig en0 down sudo ifconfig en0 up


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

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 ...


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

W32time will not start automatically if the PC is not in a domain. Damn Microsoft! Try to run this: sc triggerinfo w32time start/networkon stop/networkoff


7

While in theory it may sound like a good idea, here are a few potential issues: Dependency detection isn't perfect; some programs/software may expect services to be active that aren't, and simply fail to function rather than attempting to start them. In some cases, an event may require the sudden starting of a large number of services, leading to ...


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

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

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

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" ...



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