Reputation: 17392
Whenever I switch off my server, I need to start my cron service manually. I fired a command :-
sudo update-rc.d cron defaults
Upon firing the above command, it shows the following:-
update-rc.d: using dependency based boot sequencing
update-rc.d: warning: default stop runlevel arguments (0 1 6) do not match cron Default-Stop values (none)
insserv: warning: script 'K02printer' missing LSB tags and overrides
insserv: warning: script 'K02autossh_tunnel_x2' missing LSB tags and overrides
insserv: warning: script 'printer' missing LSB tags and overrides
insserv: warning: script 'autossh_tunnel_x2' missing LSB tags and overrides
When I restart the server and pgrep cron
, no integer is being displayed. I need to sudo service cron start
to start my cron manually.
How do I start the cron service on bootup.
Upvotes: 3
Views: 1633
Reputation: 93
It looks like the service got disabled. You need to re-enable it with "update-rc.d cron enable
". That should do the trick.
The other warnings are about different init scripts which lack their LSB header. You should look into those, too.
Upvotes: 3