Changeset View
Changeset View
Standalone View
Standalone View
sysutils/py-mqttwarn/files/pkg-message.in
[ | [ | ||||
{ type: install | { type: install | ||||
message: <<EOM | message: <<EOM | ||||
After installing mqttwarn for the first time, we recommend making the | After installing mqttwarn for the first time, we recommend the following: | ||||
following change to supervisord configuration settings: | |||||
1 - Add to /etc/rc.conf: | 1 - Add to /etc/rc.conf: | ||||
supervisord_enable="YES" | mqttwarn_enable="YES" | ||||
supervisord_config="%%PREFIX%%/etc/supervisord/supervisord.conf" | |||||
2 - Create this directory: | 2 - Edit your configuration file | ||||
mkdir %%PREFIX%%/etc/supervisord | %%PREFIX%%/etc/mqttwarn/mqttwarn.conf | ||||
3 - Move the configuration file: | |||||
mv -i %%PREFIX%%/etc/supervisord.conf %%PREFIX%%/etc/supervisord/ | |||||
4 - Create %%PREFIX%%/etc/supervisord/mqttwarn.conf with the following content: | |||||
[program:mqttwarn] | |||||
command = %%PREFIX%%/sbin/mqttwarn | |||||
user = mqttwarn | |||||
environment=MQTTWARNINI="%%PREFIX%%/etc/mqttwarn/mqttwarn.ini",MQTTWARNLOG="/var/log/mqttwarn/mqttwarn.log" | |||||
5 - Add this to the end of %%PREFIX%%/etc/supervisord/supervisord.conf | |||||
[include] | |||||
files = mqttwarn.conf | |||||
EOM | EOM | ||||
} | } | ||||
] | ] |