Created
October 17, 2014 16:15
-
-
Save kenperkins/bb83259edc97bcca50ff to your computer and use it in GitHub Desktop.
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
cluster-1413561694-01 ~ # systemctl list-dependencies rackspace-monitoring-agent.service | |
rackspace-monitoring-agent.service | |
● ├─system.slice | |
● └─basic.target | |
● ├─paths.target | |
● ├─slices.target | |
● │ ├─-.slice | |
● │ └─system.slice | |
● ├─sockets.target | |
● │ ├─dbus.socket | |
● │ ├─docker.socket | |
● │ ├─sshd.socket | |
● │ ├─systemd-initctl.socket | |
● │ ├─systemd-journald-dev-log.socket | |
● │ ├─systemd-journald.socket | |
● │ ├─systemd-shutdownd.socket | |
● │ ├─systemd-udevd-control.socket | |
● │ └─systemd-udevd-kernel.socket | |
● ├─sysinit.target | |
● │ ├─clean-ca-certificates.service | |
● │ ├─coreos-tmpfiles.service | |
● │ ├─dev-hugepages.mount | |
● │ ├─dev-mqueue.mount | |
● │ ├─kmod-static-nodes.service | |
● │ ├─ldconfig.service | |
● │ ├─proc-sys-fs-binfmt_misc.automount | |
● │ ├─sys-fs-fuse-connections.mount | |
● │ ├─sys-kernel-config.mount | |
● │ ├─sys-kernel-debug.mount | |
● │ ├─systemd-ask-password-console.path | |
● │ ├─systemd-binfmt.service | |
● │ ├─systemd-journal-catalog-update.service | |
● │ ├─systemd-journal-flush.service | |
● │ ├─systemd-journald.service | |
● │ ├─systemd-modules-load.service | |
● │ ├─systemd-random-seed.service | |
● │ ├─systemd-sysctl.service | |
● │ ├─systemd-sysusers.service | |
● │ ├─systemd-tmpfiles-setup-dev.service | |
● │ ├─systemd-tmpfiles-setup.service | |
● │ ├─systemd-udev-hwdb-update.service | |
● │ ├─systemd-udev-trigger.service | |
● │ ├─systemd-udevd.service | |
● │ ├─systemd-update-done.service | |
● │ ├─systemd-update-utmp.service | |
● │ ├─systemd-vconsole-setup.service | |
● │ ├─update-ca-certificates.service | |
● │ ├─xenserver-pv-version.service | |
● │ ├─cryptsetup.target | |
● │ ├─local-fs.target | |
● │ │ ├─lvm2-activation-early.service | |
● │ │ ├─lvm2-activation.service | |
● │ │ ├─media.mount | |
● │ │ ├─proc-xen.mount | |
● │ │ ├─remount-root.service | |
● │ │ ├─systemd-remount-fs.service | |
● │ │ ├─tmp.mount | |
● │ │ └─usr-share-oem.mount | |
● │ └─swap.target | |
● └─timers.target | |
● └─systemd-tmpfiles-clean.timer |
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=Rackspace Monitoring Agent Id Creation | |
[Service] | |
After=rackspace-monitoring-agent-token.service | |
Requires=rackspace-monitoring-agent-token.service | |
Type=oneshot | |
RemainAfterExit=yes | |
ExecStart=/bin/bash -c '/usr/bin/xenstore read name | /usr/bin/sed "s:instance-:monitoring_id :" >> /opt/rackspace-monitoring-agent/rackspace-monitoring-agent.cfg' |
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=Rackspace Monitoring Agent | |
[Service] | |
After=rackspace-monitoring-agent-token.service rackspace-monitoring-agent-id.service | |
Requires=rackspace-monitoring-agent-token.service rackspace-monitoring-agent-id.service | |
ExecStart=/usr/bin/docker run \ | |
-v /proc:/proc \ | |
-v /dev:/dev \ | |
-v /dev/pts:/dev/pts \ | |
-v /sys:/sys \ | |
-v /opt/rackspace-monitoring-agent/rackspace-monitoring-agent.cfg:/etc/rackspace-monitoring-agent.cfg \ | |
-v /opt/rackspace-monitoring-agent/logs:/var/log rackerlabs/maas-agent-docker | |
Restart=always | |
RestartSec=30s |
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=Rackspace Monitoring Agent Token Creation | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes | |
ExecStart=/usr/bin/mkdir -p /opt/rackspace-monitoring-agent/logs | |
ExecStart=/bin/bash -c 'echo "monitoring_token RACKSPACE_MONITORING_TOKEN" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment