System daemon waagent on Alpine Linux with s6
-
I am experiencing an issue with creating a system daemon on Alpine Linux. rc is installed by default, but it does not function correctly with Azure Linux VM Agent (waagent). I decided to choose the s6 utility as the daemon manager. Alpine Linux does not run as a Docker container
I managed to create a system daemon using the s6 utility (https://skarnet.org/software/s6/) that launches the agent (waagent) after the VM boots. But after rebooting the VM, for some reason the agent does not start using s6, and the launch occurs after explicitly rebooting s6 using rc-service. s6-supervise seems to be stuck. As a result, after rebooting the system, the following process should be launched 6679 root 0:00 python /usr/sbin/waagent -daemon
cat /etc/service/waagent/run #!/bin/sh exec doas /usr/sbin/waagent -start doas cat /etc/init.d/s6 #!/sbin/openrc-run name="s6" command="/usr/lib/s6/s6-svscanboot" command_args="/etc/service" pidfile="/run/s6.pid" start_stop_daemon_args="-b -m -k 022" ps aux | grep waagent* 2395 root 0:01 s6-supervise waagent 6530 uadmin 0:00 grep waagent*
-
@Mr_programer what on earth makes you think the pfSense (a FreeBSD based router OS) forum is the place to ask the question about Alpine Linux?
This 'Virtualization' subforum here is meant for questions about pfSense running virtualized.
Under https://alpinelinux.org/community/ you'll find information on how to get help for Alpine Linux.
-
S stephenw10 moved this topic from Virtualization
-
Moved. But this also feels like incoming spam....
-
Can we start down-voting ?
-
I have already solved the problem by using the Python library. You can delete my post. Thank you for your help)