Remotely reboot the Freebox Server from OpenBSD

The Freebox Server is an ADSL/FTTH router provided by the french operator Free SA. From it’s Web interface, you can apply changes and reboot the box. But if you can’t access this Web interface, you just won’t be able to reboot the box.

Didier Segura provides a PHP script that can be used to remotely reboot the box.
On my OpenBSD box, the installation and launch is quite straight forward:
Continue reading “Remotely reboot the Freebox Server from OpenBSD”

Starting third-party daemons on OpenBSD

Since OpenBSD 4.9, third-party daemons, like MySQL, come with a rc.d script to start, stop and manage the daemon.

Once the package is installed, the managing script is available in /etc/rc.d/.
To start a daemon, just run:

# /etc/rc.d/mysqld start

Now, if you want the daemon to automagically start on boot:

  • check that the script is executable:
    # ls -alh /etc/rc.d/mysqld
    -r-xr-xr-x  1 root  bin   461B Feb 23 22:16 /etc/rc.d/mysqld
  • reference it in the RC configuration file:
    # vi /etc/rc.conf.local

Quite simple!