We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e35fa8e commit 693c446Copy full SHA for 693c446
1 file changed
rootfs/etc/cont-init.d/04-svc-main.sh
@@ -109,3 +109,14 @@ with-contenv
109
/usr/sbin/snmpd -f -c /etc/snmp/snmpd.conf
110
EOL
111
chmod +x /etc/services.d/snmpd/run
112
+
113
+mkdir -p /etc/services.d/ircbot
114
+cat >/etc/services.d/ircbot/run <<EOL
115
+#!/usr/bin/with-contenv sh
116
+if [ $(lnms config:get irc_alert) == "true" ]; then
117
+ s6-setuidgid 1000:992
118
+ /opt/librenms/irc.php
119
+fi
120
+sleep 60
121
+EOL
122
+chmod +x /etc/services.d/ircbot/run
0 commit comments