Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    System daemon waagent on Alpine Linux with s6

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    5 Posts 4 Posters 74 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Mr_programer
      last edited by Mr_programer

      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*
      
      patient0P 1 Reply Last reply Reply Quote 0
      • patient0P
        patient0 @Mr_programer
        last edited by

        @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.

        1 Reply Last reply Reply Quote 1
        • stephenw10S stephenw10 moved this topic from Virtualization
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Moved. But this also feels like incoming spam....

          GertjanG 1 Reply Last reply Reply Quote 1
          • GertjanG
            Gertjan @stephenw10
            last edited by

            @stephenw10

            Can we start down-voting ?

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 0
            • M
              Mr_programer
              last edited by

              I have already solved the problem by using the Python library. You can delete my post. Thank you for your help)

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.