Enjoy Slackware 15.0!
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
talk:howtos:general_admin:openrc [2018/11/06 19:35 (UTC)] aaditya add section for migration to openrc 0.39+ |
talk:howtos:general_admin:openrc [2018/11/07 07:16 (UTC)] aaditya [migrating] update formatting and structure |
||
---|---|---|---|
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.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. | + | |
- | + | ||
- | 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 / | + |