Last active
August 29, 2015 14:27
-
-
Save russmckendrick/f647b2faad5d92c96771 to your computer and use it in GitHub Desktop.
cadvisor start up scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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