[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
talk:howtos:general_admin:openrc [2018/11/06 19:35 (UTC)] – add section for migration to openrc 0.39+ aaditya | talk:howtos:general_admin:openrc [2018/11/07 07:10 (UTC)] – add links to wiki section for migration aaditya | ||
---|---|---|---|
Line 25: | Line 25: | ||
=== Migrating to OpenRC 0.39+ from previous versions === | === Migrating to OpenRC 0.39+ from previous versions === | ||
- | OpenRC 0.39, as shipped via [[https:// | + | OpenRC 0.39+, as // |
- | * **openrc-init** is being used as init instead of /// | + | * //openrc-init// is being used as init instead of /// |
* Service and configuration directory has been changed to /// | * Service and configuration directory has been changed to /// | ||
- | Both these changes were done to have a clean{er} OpenRC install which can co-exist with other init systems like sysvinit (default), runit, etc, just by changing | + | Both these changes were done to have a clean{er} OpenRC install which can co-exist with other init systems like sysvinit (default), runit, etc, just by changing boot parameters. |
- | To change from /// | + | Following articles have more info: |
- | | + | * To switch to openrc-init: [[https://docs.slackware.com/howtos: |
- | for service in / | + | * To switch to / |
- | svcname=$(basename " | + | |
- | if [ ! -e "/ | + | |
- | if [ -f "/etc/init.d/${svcname}" | + | |
- | cp -v "/etc/init.d/ | + | |
- | elif [ -L "/etc/init.d/ | + | |
- | # check if symlink is of a service | + | |
- | service_target=$(readlink -f " | + | |
- | service_target_name=$(basename " | + | |
- | if [ $(dirname " | + | |
- | ln -sv "/ | + | |
- | fi | + | |
- | fi | + | |
- | fi | + | |
- | done | + | |
- | + | ||
- | # enable existing services | + | |
- | for runlevel in / | + | |
- | for service in ${runlevel}/ | + | |
- | svcname=$(basename " | + | |
- | rvlname=$(basename " | + | |
- | if [ ! -e / | + | |
- | ln -sv / | + | |
- | fi | + | |
- | done | + | |
- | done | + | |
- | + | ||
- | | + | |
- | for file in / | + | |
- | filename=$(basename " | + | |
- | extension=" | + | |
- | if [ " | + | |
- | continue | + | |
- | fi | + | |
- | if [ -e "/ | + | |
- | diff -Nupr "/ | + | |
- | fi | + | |
- | done | + | |
- | + | ||
- | Config changes found above can be updated by hand or copy pasted in new location. | + | |
- | + | ||
- | After checking that things are working expected, old files and folders can be renamed (or removed). | + | |
- | + | ||
- | mv /etc/init.d / | + | |
- | mv /etc/conf.d / | + | |
- | mv / | + | |
- | mv / | + | |
- | + | ||
- | Finally initial changes done by us can be reverted: | + | |
- | + | ||
- | mv / | + | |
- | mv / | + |