Support for Alpine Linux
Hello,
First, thanks for this awesome piece of software !
Is there a plan to support Alpine Linux ?
5 Comments
Hi everyone, I have tried to install Agent on Alpine Linux, ending with the error that systemd is not avail., so I made init.d entry using openrc-run instead of systemd:
**tee /etc/init.d/patchmon-agent > /dev/null << 'EOF'
#!/sbin/openrc-run
name="patchmon-agent"
description="PatchMon Agent Service"
command="/usr/local/bin/patchmon-agent"
command_args="serve"
command_background=true
pidfile="/run/${RC_SVCNAME}.pid"
output_log="/var/log/patchmon-agent.log"
error_log="/var/log/patchmon-agent.log"
depend() {
need net
after firewall
}
start_pre() {
checkpath --directory --mode 0755 /run
}
start_post() {
if [ -n "$output_log" ]; then
echo "PatchMon Agent started with PID $(cat /run/${RC_SVCNAME}.pid)" >> "${output_log}"
fi
}
stop_post() {
if [ -n "$output_log" ]; then
echo "PatchMon Agent stopped" >> "${output_log}"
fi
rm -f /run/${RC_SVCNAME}.pid
}
EOF**
then setup permissions:
chmod +x /etc/init.d/patchmon-agent
then enable & start:
rc-update add patchmon-agent default
rc-service patchmon-agent start
so status: rc-service patchmon-agent status
is saying its fine now and its visible in patchmon server, but running:
/usr/local/bin/patchmon-agent report
gives:
Error: failed to get packages: unsupported package manager: unknown
am I doing something wrong or is it still not ready for Alpine?
This is now being worked on as part of 1.3.1
Awesome, Thanks !
Hi,
So yes, this will be released in 1.3.1 (the next release is going to be 1.3.0) but soon we will have full support for the apk package manager
Thank you
Ibrahim

@dominikbargiel still in progress, wasn't implemented in 1.3.1