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 bac1a95 commit 0b2c72fCopy full SHA for 0b2c72f
1 file changed
rootfs/etc/cont-init.d/04-svc-main.sh
@@ -110,3 +110,14 @@ with-contenv
110
/usr/sbin/snmpd -f -c /etc/snmp/snmpd.conf
111
EOL
112
chmod +x /etc/services.d/snmpd/run
113
+
114
+mkdir -p /etc/services.d/ircbot
115
+cat >/etc/services.d/ircbot/run <<EOL
116
+#!/usr/bin/with-contenv sh
117
+if [ $(lnms config:get irc_alert) == "true" ]; then
118
+ s6-setuidgid 1000:992
119
+ /opt/librenms/irc.php
120
+fi
121
+sleep 60
122
+EOL
123
+chmod +x /etc/services.d/ircbot/run
0 commit comments