* [gentoo-user] openrc: Writing custom init scripts
@ 2023-10-30 5:50 Thanos Apollo
2023-10-30 6:21 ` cal
0 siblings, 1 reply; 3+ messages in thread
From: Thanos Apollo @ 2023-10-30 5:50 UTC (permalink / raw
To: gentoo-user
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
<https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Working#Layout>,
am I missing something? Why would this error be produced?
--
Thanos Apollo
https://thanosapollo.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] openrc: Writing custom init scripts
2023-10-30 5:50 [gentoo-user] openrc: Writing custom init scripts Thanos Apollo
@ 2023-10-30 6:21 ` cal
2023-10-30 6:46 ` Thanos Apollo
0 siblings, 1 reply; 3+ messages in thread
From: cal @ 2023-10-30 6:21 UTC (permalink / raw
To: gentoo-user, Thanos Apollo
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
> <https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Working#Layout>, 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] openrc: Writing custom init scripts
2023-10-30 6:21 ` cal
@ 2023-10-30 6:46 ` Thanos Apollo
0 siblings, 0 replies; 3+ messages in thread
From: Thanos Apollo @ 2023-10-30 6:46 UTC (permalink / raw
To: cal; +Cc: gentoo-user
cal <cal@mail.meme.technology> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-10-30 6:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-30 5:50 [gentoo-user] openrc: Writing custom init scripts Thanos Apollo
2023-10-30 6:21 ` cal
2023-10-30 6:46 ` Thanos Apollo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox