Init scripts backup & customization
Hi all!
Although i encountered this problem several times long ago, this time made me report this as issue. This is not a dinit-specific, but as long as i encountered it with dinit, i'll leave it here.
So, this is a list of issues i want to address:
0) All init scripts and their configs should be backed up at pacman level. After all, Artix is about freedom of choice and there is a high chance for a user to edit init scripts to fit their needs.
1) dhcpcd script runs dhcpcd on all interfaces - if i have several interfaces, not all of them work as clients, some are used as dhcp servers. As a result of this dhcpcd behavior these server interfaces get client ip and may even break default route.
2) dhcpd script also tries to run on all interfaces and may fail to do so resulting into dhcp daemon not running at all. Additionally, manual ip address setting is required prior to running dhcpd.
3) slapd script is broken by 2>&1 line. Additionally, it uses /etc/openldap/slapd.conf as default config which uses outdated config format. I manually set -F key to use config directory format
4) gitea fails to start unless i pass its service USER, PATH and HOME environment variables
I'm sure this is not a full list of possible problems to address. The former is an absolutely must-have since it allows users to safely customize their systems without expecting it to break because pacman overwrote some init scripts.