Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
Rc scripts not in expected directory.
« previous
next »
Print
Pages: [
1
]
Author
Topic: Rc scripts not in expected directory. (Read 439 times)
primroseN
Newbie
Posts: 6
Karma: 0
Rc scripts not in expected directory.
«
on:
March 18, 2024, 10:05:37 am »
Hello all,
I have a custom package, os-myPackage-devel-0.2.pkg which successfully installs on any fresh machine running OPNsense v24.1. But I have an issue with the rc scripts. They don't appear ship into /usr/local/etc/rc.d/ of the new machine, as expected. I presumed that having them referenced in the conf file under actions.d directory was enough. Was I wrong?
Do i need extra steps during packaging to reference the scripts or something similar?
Thanks for your help.
Logged
Monviech (Cedrik)
Global Moderator
Hero Member
Posts: 1614
Karma: 176
Re: Rc scripts not in expected directory.
«
Reply #1 on:
March 18, 2024, 10:17:16 am »
The /usr/local/etc/rc.d/ file will only be packaged if you include it into the packaging process.
Here is an example of where it has to reside in order to be packaged in when you "make package" in /usr/plugins/devel/yourplugin/
The base directory would be /usr/plugins/devel/yourplugin/src/etc/rc.d/
https://github.com/Monviech/os-caddy-plugin/tree/1.5.0/usr/plugins/devel/caddy/src/etc/rc.d
«
Last Edit: March 18, 2024, 10:18:47 am by Monviech
»
Logged
Hardware:
DEC740
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Rc scripts not in expected directory.
«
Reply #2 on:
March 18, 2024, 10:54:33 am »
Yes, there are plenty of plugins out there with manual added rc scripts like maltrail:
https://github.com/opnsense/plugins/tree/master/security/maltrail/src/etc/rc.d
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
primroseN
Newbie
Posts: 6
Karma: 0
Re: Rc scripts not in expected directory.
«
Reply #3 on:
March 18, 2024, 11:00:14 am »
Thank you for your help. I didn't know I could manually add it like that. Everything is working as expected now.
Cheers,
- Prim
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
Rc scripts not in expected directory.