Skip to content
Open
Changes from 1 commit
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
11 changes: 11 additions & 0 deletions rootfs/etc/cont-init.d/04-svc-main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,14 @@ with-contenv
/usr/sbin/snmpd -f -c /etc/snmp/snmpd.conf
EOL
chmod +x /etc/services.d/snmpd/run

mkdir -p /etc/services.d/ircbot
cat >/etc/services.d/ircbot/run <<EOL
#!/usr/bin/with-contenv sh
if [ $(lnms config:get irc_alert) == "true" ]; then
Comment thread
Olen marked this conversation as resolved.
Outdated
s6-setuidgid 1000:992
Comment thread
Olen marked this conversation as resolved.
Outdated
/opt/librenms/irc.php
fi
sleep 60
Comment thread
Olen marked this conversation as resolved.
Outdated
EOL
chmod +x /etc/services.d/ircbot/run