tftp-hpa. convert systemd into runit 29 December 2021, 17:44:51 Hello. I want use tftp-hpa from arch. But it use systemd units. Can anyone help me convert systemd utits into runit?tftpd.service: [Unit]Description=hpa's original TFTP daemonAfter=network.targettftpd.socket:[Service]Type=forkingEnvironmentFile=/etc/conf.d/tftpdExecStart=/usr/bin/in.tftpd --listen $TFTPD_ARGS[Install]WantedBy=multi-user.target[Unit]Description=hpa's original TFTP daemonConflicts=tftpd.service[Socket]ListenDatagram=69[Install]WantedBy=sockets.target
Re: tftp-hpa. convert systemd into runit Reply #1 – 30 December 2021, 02:42:00 I try create runit file: #!/bin/shexec in.tftpd -l -s /srv/tftp/in.tftpd not run. RSM shows that the service is not running... tftp-hpa state-down.But in.tftpd -l -s /srv/tftp/ runs from command line (root) Last Edit: 30 December 2021, 03:55:37 by gendalf
Re: tftp-hpa. convert systemd into runit Reply #2 – 30 December 2021, 07:11:00 Please don't post multiple posts in succession. Use the "Quick Edit" or "Modify" menu item in the bottom right corner of your post instead.
Re: tftp-hpa. convert systemd into runit Reply #3 – 30 December 2021, 11:02:54 QuoteType=forkingThere's the problem. Due to runit's design, you must find a way to make services foreground/non-forking (in systemd lingo, Type=simple) for them to work properly.You should probably read the documentation on your end to be sure, but this manual states that replacing -l with -L will fix that. Remember to kill any dangling in.tftpd processes that might be using the port.