Ubuntu Pastebin

Paste from bdx at Wed, 6 Sep 2017 21:54:00 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
ubuntu@ip-172-31-102-135:~$ ls /etc/init.d
acpid        checkroot-bootclean.sh  cryptdisks-early  irqbalance               lvm2-lvmetad    mountall-bootclean.sh  networking     procps    resolvconf      skeleton      umountroot
apparmor     checkroot.sh            dbus              iscsid                   lvm2-lvmpolld   mountall.sh            ondemand       rc        rsync           ssh           unattended-upgrades
apport       collectd                grub-common       keyboard-setup.dpkg-bak  lxcfs           mountdevsubfs.sh       open-iscsi     rc.local  rsyslog         udev          urandom
atd          console-setup           halt              killprocs                lxd             mountkernfs.sh         open-vm-tools  rcS       screen-cleanup  ufw           uuidd
bootmisc.sh  cron                    hostname.sh       kmod                     mdadm           mountnfs-bootclean.sh  plymouth       README    sendsigs        umountfs
checkfs.sh   cryptdisks              hwclock.sh        lvm2                     mdadm-waitidle  mountnfs.sh            plymouth-log   reboot    single          umountnfs.sh
ubuntu@ip-172-31-102-135:~$ ls /etc/init
acpid.conf                cloud-init-container.conf          cron.conf               hwclock.conf       networking.conf                   procps-instance.conf  udev.conf
apparmor.conf             cloud-init-local.conf              cryptdisks.conf         hwclock-save.conf  network-interface.conf            prometheus.conf       udevmonitor.conf
apport.conf               cloud-init-nonet.conf              cryptdisks-udev.conf    hwclock.sh.conf    network-interface-container.conf  resolvconf.conf       udevtrigger.conf
cloud-config.conf         cloud-log-shutdown.conf            dbus.conf               irqbalance.conf    network-interface-security.conf   rsyslog.conf          ufw.conf
cloud-final.conf          collectd-exporter-prometheus.conf  friendly-recovery.conf  kmod.conf          passwd.conf                       setvtrgb.conf         ureadahead.conf.disabled
cloud-init-blocknet.conf  console-font.conf                  hostname.conf           lxcfs.conf         pollinate.conf                    ssh.conf              ureadahead-other.conf
cloud-init.conf           console-setup.conf                 hostname.sh.conf        lxd.conf           procps.conf                       ttyS0.conf
ubuntu@ip-172-31-102-135:~$ cat /etc/init
init/            init.d/          initramfs-tools/ 
ubuntu@ip-172-31-102-135:~$ cat /etc/init
init/            init.d/          initramfs-tools/ 
ubuntu@ip-172-31-102-135:~$ cat /etc/init/collectd-exporter-prometheus.conf 
# Desc	: collectd to prometheus format
# Author: Alvaro Uria <alvaro.uria@canonical.com>
#
description "collectd-exporter-prometheus - interface between different formats"

start on runlevel [2345]
stop on runlevel [06]

setuid nobody
setgid nogroup

script
	test -f /etc/default/collectd-exporter-prometheus && . /etc/default/collectd-exporter-prometheus
	exec /usr/bin/collectd_exporter -web.collectd-push-path=$PUSH_PATH \
		-web.listen-address=$LISTEN_ADDR -web.telemetry-path=$TELEMETRY_PATH
end script
ubuntu@ip-172-31-102-135:~$ 
Download as text