I created a Ubuntu VM which has cron installed by default
Verified using dpkg -l cron and also by the fact that the user level commands crontab -e is working.
As per the manpages for cron, user level cron jobs are executed on the user level and does not need rootaccess.
I am able to write and install my own cronfile using crontab -e however the background daemon does not seem to be active. Verified using pgrep cron and ps -ef(no PIDs)
Further verified using:
(base) jovyan@survey-scraper-0:/$ service cron status
* cron is not running
Attempting to activate it using both systemctl start cron and service cron start results in errors...
(base) jovyan@survey-scraper-0:/$ systemctl start crond
System has not been booted with systemd as init system (PID 1).
Can't operate. Failed to connect to bus: Host is down
(^ this issue in particular is happening due to PID 1 being the process to start the VM)
also,
(base) jovyan@survey-scraper-0:/$ service cron start * Starting periodic command scheduler cron
cron: can't open or create /var/run/crond.pid: Permission denied
So I guess my question is, how is one supposed to use the user level cronfile as the user if they cannot activate the daemon?
I created a Ubuntu VM which has
cron
installed by default Verified usingdpkg -l cron
and also by the fact that the user level commandscrontab -e
is working. As per the manpages forcron
, user level cron jobs are executed on the user level and does not needroot
access. I am able to write and install my own cronfile usingcrontab -e
however the background daemon does not seem to be active. Verified usingpgrep cron
andps -ef
(no PIDs) Further verified using:Attempting to activate it using both systemctl start cron and service cron start results in errors...
(^ this issue in particular is happening due to PID 1 being the process to start the VM) also,
So I guess my question is, how is one supposed to use the user level cronfile as the user if they cannot activate the daemon?