Skip to content

Instantly share code, notes, and snippets.

@russmckendrick
Last active August 29, 2015 14:27
Show Gist options
  • Save russmckendrick/f647b2faad5d92c96771 to your computer and use it in GitHub Desktop.
Save russmckendrick/f647b2faad5d92c96771 to your computer and use it in GitHub Desktop.
cadvisor start up scripts
description "cadvisor from google"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
respawn
umask 022
#nice
#chroot /
chdir /
#limit core <softlimit> <hardlimit>
#limit cpu <softlimit> <hardlimit>
#limit data <softlimit> <hardlimit>
#limit fsize <softlimit> <hardlimit>
#limit memlock <softlimit> <hardlimit>
#limit msgqueue <softlimit> <hardlimit>
#limit nice <softlimit> <hardlimit>
#limit nofile <softlimit> <hardlimit>
#limit nproc <softlimit> <hardlimit>
#limit rss <softlimit> <hardlimit>
#limit rtprio <softlimit> <hardlimit>
#limit sigpending <softlimit> <hardlimit>
#limit stack <softlimit> <hardlimit>
setuid root
setgid root
console log # log stdout/stderr to /var/log/upstart/
exec /usr/local/bin/cadvisor
[Unit]
Description=cadvisor from google
[Service]
Type=simple
User=root
Group=root
ExecStart=/usr/local/bin/cadvisor
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment