New answers tagged services
When Upstart stops a job it sends the SIGTERM signal. By default SIGTERM causes the program to immediately exit. This means the execution does not flow through the rest of your code, it simply stops. A signal handler can be implemented using the signal module, you can find details on it's usage here. This will allow you to run code upon receiving the ...
This was a problem for me also and obviously still exists. I fixed the errors by removing hostapd from /etc/rc2.d/ and /etc/networking/if-pre-up.d/ /etc/network/interfaces controls hostapd now.. iface wlan0 inet static post-up /usr/sbin/hostapd -B /etc/hostapd/hostapd.conf post-up service isc-dhcp-server restart address ...
To query the status of a service in systemd you can do: systemctl status $NAME_OF_SERVICE
When I had the following issue then we checked the two lines. -bash-4.1# service named start Starting named: Error in named configuration: zone localhost.localdomain/IN: loaded serial 0 zone localhost/IN: loaded serial 0 zone 184.108.40.206.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0 zone 220.127.116.11.in-addr.arpa/IN: loaded ...
When using sudo service Ubuntu 12.04 and Ubuntu 14.04 will first to look init script in /etc/init (upstart) and then /etc/init.d, so it first will find this script: /etc/init/gearman-job-server.conf and then /etc/init.d/gearman-job-server Btw there is also bug in gearman-job-server.conf which is described here.
If you have CentOS 7 systemctl restart cpdavd cpsrvd leechprot spamd tailwatch If you have CentOS 6 service cpdavd restart service cpsrvd restart service leechprot restart service spamd restart service tailwatch restart
For Linux Mint 17 based on Ubuntu you have to use this because it uses upstart as it is the way on Ubuntu 14.04 LTS: echo manual | sudo tee /etc/init/<service_name>.override For Linux Mint Debian Edition, it uses System V init, so you can issue: update-rc.d -f <service_name> remove It will remove completely the init scripts for the ...
This is more a find "start/running" or something similar which is better formatted as if (system("service mysql status") =~ /start\/running/) Next thing is that you will match the return code of the system command instead of the output. Use backticks (`) instead: if (`service mysql status` =~ /start\/running/) There is no not in this condition as you ...
Top 50 recent answers are included