Skip to content

Instantly share code, notes, and snippets.

// vi /etc/systemd/system/foo.service
[Unit]
Description=Run a command at startup
[Service]
ExecStart=/path/to/your/command
[Install]
WantedBy=multi-user.target
#!/bin/bash
# Exit immediately if a command exits with a non-zero status
set -e
# Function to display usage instructions
usage() {
echo "Usage: $0 <db_name> <db_user> <db_password>"
exit 1
}