/
etc
/
systemd
/
system
/
Upload File
HOME
# Copyright (c) 2019 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. # systemd service config file for Oracle Cloud Agent [Unit] Description=Oracle Cloud Infrastructure agent for management and monitoring Documentation=https://docs.cloud.oracle.com/iaas/ ConditionFileIsExecutable=/usr/libexec/oracle-cloud-agent/agent ConditionFileNotEmpty=/etc/oracle-cloud-agent/agent.yml After=local-fs.target network-online.target Requires=local-fs.target network-online.target [Service] RuntimeDirectory=oracle-cloud-agent RuntimeDirectoryMode=0700 WorkingDirectory=/var/lib/oracle-cloud-agent/ ExecStart=/usr/libexec/oracle-cloud-agent/agent User=oracle-cloud-agent Group=oracle-cloud-agent # The ProctectHome security feature needs to be disabled # for the bastions plugin ProtectHome=false Type=simple # with mixed kill mode, agent is stopped first via SIGTERM # agent in turn stops all plugins. Plugins have 20 seconds to gracefully stop. # Agent has 30 seconds to stop since it has to wait for plugins to stop # After TimeoutStopSec (here 40 seconds) any process left over in control-group is killed with SIGKILL KillMode=mixed TimeoutStopSec=40 Restart=always RestartSec=60 CPUAccounting=true MemoryAccounting=true TasksAccounting=true Slice=oca.slice [Install] WantedBy=multi-user.target