Directory Structure

The predefined directory layout inside a serverlet.

Every serverlet has a predefined directory structure. All your data lives in the /srv/ directory. You have full user permissions to this directory, and it’s the only one where data is stored permanently β€” data outside this directory may not survive a restart.

  • /srv/bin/ β€” location for your applications’ binary files
  • /srv/config/ β€” location for application configuration files
  • /srv/data β€” location for application data
  • /srv/log β€” location for application logs
  • /srv/service β€” location for runit configuration files
  • /srv/www β€” location for your application

It’s not a good idea to change this structure (delete or rename it) β€” doing so could break some applications. That said, you’re free to change the contents of the /srv/ directory however you like. No directories other than /srv/ and /tmp/ can be modified.

Full serverlet directory structure

/bin/, /boot/, /dev/, /etc/, /home/, /lib/, /lib32/, /lib64/, /libx32/, /media/, /mnt/, /opt/, /proc/, /root/, /run/, /sbin/, /srv/ (your directory), /srvlet/, /sys/, /tmp/ (directory for writing temporary data), /usr/, /var/

Last updated