Configure modd using modd.conf
masterModd looks for a modd.conf file in the current directory on startup. The configuration consists of one or more blocks, each containing file match patterns and associated commands.
Command Types
- prep: Commands that run and terminate (e.g., compilers, test suites, linters). They run in order. If any
prepcommand fails, the block execution stops immediately. If all succeed, any daemons in the block are restarted. - daemon: Commands that run continuously (e.g., databases, webservers). Modd restarts them if they exit. When a block is triggered, modd sends a signal (defaulting to
SIGHUP) to the daemon process group.
Block Syntax
pattern {
prep: command
daemon: command
}