Search notes:

OpenRC

Services

Start, stop and restart service named svcxyz:
$ /etc/init.d/svcxyz start
$ /etc/init.d/svcxyz stop
$ /etc/init.d/svcxyz restart
Is this the same as … ?
$ rc-service svcxyz start

Init scripts

Init scripts are somewhat similar to sysvinit scripts used in sysvinit. However, some several simplify their creation.
The initscript for the service named svcxyz is /etc/init.d/svcxyz.
Init scripts are apparently interpreted by openrc-run.

Configuration file

The configuration file for the init script /etc/init.d/svcxyz is /etc/conf.d/svcxyz.

TODO

$ rc-status
The files under {/mnt/livecd,}/lib/rc/sh/

See also

/etc/rc.conf stores the *global OpenRC configruation settings.
/var/log/rc.log is the default log file.
The runlevels under /etc/runlevels have symlinks to the actual init scripts.
/lib/rc/sh/openrc-run.sh (in a live cd located under /mnt/livecd/…) is a shell warapper for openrc-run.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/in...', 1759391367, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/init/OpenRC/index(78): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78