Tag Info

Hot answers tagged

16

This means the service was running at one time, but has crashed. When you start a service, it creates a "lock" file to indicate that the service is running. This helps avoid multiple instances of the service. When you stop a service, this lock file is removed. When a running service crashes, the lock file exists but the process no longer exists. Thus, ...


13

If the service is starting and terminating improperly then you don't need a script to do this. Open the Services control panel Right-click on the service and get properties Click on the Recovery tab and edit the settings there EDIT: Yes, and as everyone has added you should certainly be checking to see what is going on with the service. Travelling Tech ...


12

You can use SC to create user defined services. This command will create a service: sc.exe create "Service Name" binPath= "C:\Your Program.exe" Note there must be a space between binpath= and the program location. To Delete the service use: sc.exe delete "Service Name"


12

Updating that file and then restarting the service is the only way. You can push a new file and then make the service Require that; that way when the contents are updated the service will properly start. If you don't want to replace the file entirely you can use the Puppet augeas tool to just modify the single line in the defaults file. There are a few ...


11

Seems like the wrong solution, somehow. If you're on Ubuntu, use Upstart. If you're on Centos/RHEL/Other, take a look at using start-stop-daemon and the LSB init standard to properly daemonize a process, and then that'll enable you to use chkconfig to start/stop it automatically.


10

Snarky Answer: DNS does not do URL forwarding. DNS has no knowledge of this "301 Redirect" of which you speak, and has no interest in your H-T-T-P verbosity over on port 80, nor these you-are-ell thingies - it only knows name, address, and maybe a few other important conversational words like "food", "bathroom" and "penicillin" . Non-Snarky Answer: You ...


10

monit is a great way to monitor and restart services when they fail--and you'll probably end up using this for other essential services (such as Apache). There's a nice article on nixCraft detailing how to use this for services specifically, although monit itself has many more functions beyond this. As for the socket aspect, @galraen answered this spot on. ...


9

From the man page: service runs a System V init script in as predictable environment as possible, removing most environment variables and with current working directory set to /. It then calls the init.d script. So they both accomplish the same thing, except calling the script via /sbin/service just ensures that some environment variables in your ...


8

I'm not sure how I can contact you 'off-site' but for the purpose of the thread, here are the basics: 1) Disable unnecessary services. Ubuntu isn't my strongpoint, but, I believe debian systems use 'rcconf' to switch off services. You can also modify the files directly in /etc/rc.d. You don't want to run anything that could leave you vulnerable, or require ...


8

The primary problem is that there is no proper $PATH defined in the run environment of cron, so you need to use the full path to service for this to work. You can find out this path with the command which service, which should print something like /usr/sbin/service. The secondary problem: I wouldn't do that, just blindly restarting services on a ...


8

For the hell of it I checked a few of the standard daemons on my 12.04 machines. You have to manage the file, no way around it at this point in time. snmpd # snmpd control (yes means start daemon). SNMPDRUN=yes collectd # 0: start collectd on boot, 1: do not start collectd on boot # default: 0 DISABLE=0 puppet # Start puppet on boot? START=yes ...


8

You can use: ifdown eth1 ; ifup eth1 As a single command. The ';' just runs one command, then the other. As long as your interface is configured to have the neccessary IP and route to match the current configuration, your ssh connection won't drop. If you're worried about using it on a production server that you don't have another method of access to, ...


7

Drop the pipe to find. Irritatingly, the application is on a new line, so you can't use the find utility. For example: C:\Windows\system32>netstat -abn | find "3306" TCP 0.0.0.0:3306 0.0.0.0:0 LISTENING TCP [::]:3306 [::]:0 LISTENING And without the pipe to find (snipped for brevity) ...


7

I would also check the Event Viewer to see why the service crashes - it could be that a minor fix, or a driver update would solve the problem permanently.Another point: if the process leaks memory and leaves allocated memory behind when it crashes, restarting it over and over decreases the OS stability and increases the chance your entire system will run out ...


7

You can call setsockopt(2) for listening socket with SO_REUSEADDR, so you will be able to bind(2) it again without waiting for expiring all connections. Another possibility: drop connections from kernel. FreeBSD have tcpdrop command for this, don't know about Linux.


6

It's hard to say this without sounding flippant, but the error message is telling you what to do. The first place you should be going, on a Windows NT-based operating system (like W2K3), when you're sorting out misbehavior with the OS is the event log. Doubly so when the error message tells you to do that. Some service or driver program marked for ...


6

While I don't have the WSFP installed here, by far your best bet is to use WebSphere's versionInfo utility. You can find it in %APPSERVER%/bin where %APPSERVER% is your WAS installation location. Reference (from the WAS 6.1 infocenter) can be found here. My suggestion is that you generate the version report in HTML using the most detailed flags (-long ...


6

I think the problem is trying to install the SpamFilter in the Webservice. As is stated in the documentation, the SpamFilter must be configured in the Web Application: 3- Configure the spam filter by opening the UGC Web application's configuration file, web.config, located in the root folder of the Web application


6

The risks in turning it off are: Windows Firewall cannot operate Unpredictable behavior and event logging from other components and applications that may assume that Windows Filtering Platform is operating normally. No IPsec A prime example of "other components and apps" that use/need the WFP in various ways would be antivirus. But I'll hazard a guess ...


5

Check out TCPView http://technet.microsoft.com/en-us/sysinternals/bb897437 TCPView is a Windows program that will show you detailed listings of all TCP and UDP endpoints on your system, including the local and remote addresses and state of TCP connections. On Windows Server 2008, Vista, and XP, TCPView also reports the name of the process that owns the ...


5

If you don't want to use a separate helpdesk application for this, then the easiest and most common way to do this is to use a separate IMAP mailbox for the 'support' email address, that both you and your staff have access to. Then you simply create a folder called "Handover" where your employee puts all the emails he wants to hand over to you. The added ...


5

I'd make this the developer's problem as its their application performing badly - telling you that they're unaware of the issue is pretty bad as the most likely explanation is quite well known: The system is possibly trying, and failing to check the validity of the certificate with its provider's certificate revocation list. You need to disable certificate ...


5

I would agree with others in that scheduled tasks would be appropriate for your needs. I would add though (as a programmer myself) that as a scheduled task, either have some sort of confirmation be sent to you (email?) that the task ran successfully and/or append results to a log file somewhere for potential troubleshooting. Doing some sort of ...


5

Here's how I decide... Services are for running "constant" operations all the time. Scheduled Tasks are for running single units of work at scheduled intervals (what you want). Really, Scheduled Tasks itself is a service already. Don't write a service that duplicates the Scheduled Task functionality. :)


5

Here's a few resources that should help you out: http://technet.microsoft.com/en-us/library/cc543293.aspx http://www.streetdirectory.com/.../service_level_agreement_sla_boot_camp.html http://www.thefreelibrary.com/Implementing+a+service+level+agreement-a0151090784


4

Be careful! Multiple DNS servers mean "any of these servers can be queried for the domain information", not "if the first fails, try the next". You need something with a bit more intelligence. Unfortunately, there's no Free, Easy and Reliable way of doing it. If you happen to have a load balancer, it may be possible to configure it with a 'failure' page.


4

My advice would be to use whatever you want whenever you're actually logged in to the machine, and use /etc/(init.d|rc.d)/daemon-name if you are scripting, the reason being the latter is generally more portable. IIRC, the only distros that come with /sbin/service in the base packages install are RH-flavored, i.e. RHEL, CentOS, Fedora. My Debian systems for ...


4

For a single server, change HKLM\SYSTEM\CurrentControlSet\Services\W32Time\ TimeProviders\NtpClient\SpecialPollingInterval to the value (in seconds) that you want the interval to be. For multiple servers in a domain I'd set it via GPO.


4

To change an existing service, use the sc config command. To change the "foo" service to use the "DOMAIN\User" credential with the password "password", execute: sc config foo obj= DOMAIN\User password= password Be sure to put spaces between the equals signs and the arguments. If you're using sc create to create the service just add the obj= and password= ...



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