mkunit Documentation
Everything you need to create, manage, and validate systemd unit files.
Quick Install
cargo install mkunit # via Rust's cargo
Quick Start
Create and install a service in one command:
# Create a user service for your app
mkunit service myapp --exec "./server" --install
# Start it
systemctl --user start myapp
# Check status
mkunit status myapp
Getting Started
Installation
Install mkunit on your system via Homebrew, Cargo, or from source.
Quick Start
Create your first systemd service in 5 minutes.
Interactive Mode
Learn how mkunit prompts for missing options.
Unit Types
service
Create service units for daemons and one-shot scripts.
timer
Schedule tasks with timer units (cron replacement).
path
Trigger services on file/directory changes.
socket
Socket activation for on-demand services.
mount
Manage filesystem mounts with systemd.
target
Group related units together.
Management Commands
status
Check the status of your units.
logs
View logs from your services.
edit
Edit unit files in your editor.
link
Link unit files from version control.
show
Display unit file contents.
validate
Validate unit files for common issues.
remove
Stop, disable, and remove units.
list
List units created by mkunit.
completions
Generate shell completions.