How to Install Chkconfig on Ubuntu

How do I install chkconfig on Ubuntu?

The command chkconfig is no longer available in Ubuntu.The equivalent command to chkconfig is update-rc.d.This command nearly supports all the new versions of ubuntu.

The similar commands are

update-rc.d <service> defaults

update-rc.d <service> start 20 3 4 5

update-rc.d -f <service> remove

Setting up CRON on Ubuntu VPS

As indicated in comments, and following the tutorial you mentioned How To Use Cron To Automate Tasks On a VPS, this is what you missed:

  • Check where is your service:

    which service
  • As it returned, /usr/sbin/service, then you have to use it to start cron:

    sudo /usr/sbin/service cron start
  • This returned start: Job is already running: cron to you, so it was already running. In general, to know if it is running you can perform the command

    ps -ef | grep cron
  • From this moment on, you have cron running on your server. You can edit it with crontab -e, see current values with crontab -l. You can test it with a dummy * * * * * echo "hello" >> /tmp/test123, that will write hello in /tmp/test123 every minute. In case of need, you can debug in https://stackoverflow.com/tags/crontab/info.

When i am Trying to install JAVA 7 in Ubuntu 18.04 m facing some problem

oracle-java7-installeris no longer available from their ppa:webupd8team/java repository, and that would make sense now that Java 8 is out. Try installing Java 8 and see if the problem still persists.



Related Topics



Leave a reply



Submit