Re: [gentoo-user] openrc: Writing custom init scripts

2023-10-30 Thread Thanos Apollo



cal  writes:


[...]

Did you chmod +x /etc/init.d/mullvad-daemon?  Having the wrong 
file
permissions can result in permission errors even when using 
elevated

privileges.


Fixed! Thanks, was still viewing it as a conf file & didn't think 
of chmod +x


--

Thanos Apollo
https://thanosapollo.com



Re: [gentoo-user] openrc: Writing custom init scripts

2023-10-30 Thread cal
On 10/29/23 22:50, Thanos Apollo wrote:
> 
> Hey, newbie here with a fresh Gentoo install.
> 
> 
> I'm setting up mullvad-vpn, using ebuild from GURU, so far so good.  I'd
> like to have a an init script to start the daemon, basically like this:
> 
> `/etc/init.d/mullvad-daemon`
> ``` shell
> #!/sbin/openrc-run
> command=/usr/bin/mullvad-daemon
> command_background="yes"
> ```
> 
> running the above script with `doas rc-service mullvad-daemon start`
> results in:
> `* rc-service: Permission denied` *even as root user/doas/sudo*
> 
> 
> As I said, I'm new to openrc.  I looked at
> , am I
> missing something?  Why would this error be produced?
> 
Did you chmod +x /etc/init.d/mullvad-daemon?  Having the wrong file
permissions can result in permission errors even when using elevated
privileges.