Skip to content

Instantly share code, notes, and snippets.

@KaiserWerk
Last active December 16, 2021 14:06
Show Gist options
  • Save KaiserWerk/a57b3e544c448f12fc003921aead37ed to your computer and use it in GitHub Desktop.
Save KaiserWerk/a57b3e544c448f12fc003921aead37ed to your computer and use it in GitHub Desktop.
Homelab Service unit templates
[Unit]
Description=CertMaker Bot (to cover your cert needs)
After=network.target
[Service]
Type=simple
ExecStart=/home/certmaker-bot/bin/certmaker-bot
WorkingDirectory=/home/certmaker-bot/bin
User=certmaker-bot
Group=certmaker-bot
Restart=always
RestartSec=15
[Install]
WantedBy=multi-user.target
[Unit]
Description=CertMaker (The Simple Certificate Authority)
After=network.target
Wants=mysql.service
[Service]
Type=simple
ExecStart=/home/certmaker/bin/certmaker
WorkingDirectory=/home/certmaker/bin
User=certmaker
Group=certmaker
Restart=always
RestartSec=15
[Install]
WantedBy=multi-user.target
[Unit]
Description=Gitea (Git with a cup of tea)
After=network.target
After=mysql.service
[Service]
Type=simple
ExecStart=/home/gitea/bin/gitea
WorkingDirectory=/home/gitea/bin
User=gitea
Group=gitea
Restart=always
RestartSec=15
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment