[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 revisionNext revision | Previous 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:36 (UTC)] (current) – change heading format aaditya | ||
---|---|---|---|
Line 23: | Line 23: | ||
--- // | --- // | ||
- | === 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.2, 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: |
- | | + | * [[https://docs.slackware.com/howtos: |
- | for service in / | + | * [[https://docs.slackware.com/howtos: |
- | 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 | + | |
- | | + | |
- | + | ||
- | # 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. | + | ===== dummy heading 1 ===== |
- | After checking that things are working expected, old files and folders can be renamed (or removed). | + | added for generating toc |
- | mv /etc/init.d / | + | ===== dummy heading 2 ===== |
- | mv /etc/conf.d / | + | |
- | mv / | + | |
- | mv / | + | |
- | Finally initial changes done by us can be reverted: | + | added for generating toc |
- | mv / | + | ===== dummy heading 3 ===== |
- | mv / | + | |
+ | added for generating toc |