Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions metrics.initscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh /etc/rc.common

# Copy script to the /etc/init.d/ directory
# Make sure the execute bit is on
# chmod +x /etc/init.d/<your script>
# Enable your script
# /etc/init.d/node-exporter enable

START=10
STOP=15

start() {
lua /root/metrics.lua --port 9100 &
}

stop() {
echo stop
}