LoginSignup
0
0

More than 3 years have passed since last update.

Configuring cron option under systemd

Last updated at Posted at 2019-10-05

cron can be configured in either way of these two.

  • /etc/systemd/system/cron.service.d/option.conf
[Service]
Environment='EXTRA_OPTS="-L 0"'
  • /etc/default/cron
EXTRA_OPTS="-L 0"

This is possible as this is written /lib/systemd/system/cron.service .

[Service]
EnvironmentFile=-/etc/default/cron

Some articles says docker can be configured only by /etc/systemd/system/docker.service.d/http-proxy.conf .

[Service]
Environment="HTTP_PROXY=http://localhost:8888/" "HTTPS_PROXY=http://localhost:8888/

This is because EnvironmentFile is not mentioned in /lib/systemd/system/docker.service .

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0