[Help] dinit service for netbird 22 October 2022, 16:20:26 I am trying to make service for netbird , but service is terminated with Code: [Select]exit status: 2/etc/dinit.d/netbirdCode: [Select]type = processcommand = /etc/dinit.d/scripts/netbird/etc/dinit.d/scripts/netbirdCode: [Select]#!/bin/sh[ -r conf ] && . ./confexec netbird service run --log-level info 1>&2Please help to make it work
Re: [Help] dinit service for netbird Reply #1 – 22 October 2022, 16:56:17 If someone try this on runit also https://github.com/netbirdio/netbird/issues/363#issuecomment-1180257811
Re: [Help] dinit service for netbird Reply #2 – 23 October 2022, 05:35:01 Its missing PATH/etc/dinit/environmentCode: [Select]PATH=/usr/bin/etc/dinit.d/netbirdCode: [Select]type = processrestart = truecommand = /usr/bin/netbird service run --config /etc/netbird/config.json --log-level info --log-file /var/log/netbird.log 1>&2or just export the path in your existing scriptQuoteexport PATH=/usr/bin
Re: [Help] dinit service for netbird Reply #3 – 23 October 2022, 22:38:31 @vaapicon thank you for help
Re: [Help] dinit service for netbird Reply #4 – 07 November 2022, 03:39:47 Quote from: vaapicon – on 23 October 2022, 05:35:01/etc/dinit.d/netbirdCode: [Select]type = processrestart = truecommand = /usr/bin/netbird service run --config /etc/netbird/config.json --log-level info --log-file /var/log/netbird.log 1>&2You don't want the "1>&2" at the end; dinit won't process it (so it becomes an argument to netbird-service-run, which probably won't understand it either). You shouldn't need it anyway. 2 Likes