Take the 2-minute tour ×

I will be using runit to start my gunicorn server. The following link -


states that the startup script should be created under /etc/sv/[app_name]/run and should be then symlinked to /etc/service/[app_name]/run

What is the purpose of the symlink ? Why not directly create the file in /etc/service/ dir ?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Symlinks are cheap to create and delete. If you want to deactivate the service, you can delete the symlink. Since the script won't be deleted, it's trivial to restore the service.

If you had to delete the script, restoring the service would mean to reinstall the whole application or at least restore the script from "somewhere."

share|improve this answer
Thanks Aaron, that makes perfect sense ! –  murtaza52 Oct 1 '12 at 8:26

Your Answer


