Skip to content

Instantly share code, notes, and snippets.

@bpolania
Last active September 14, 2024 23:17
Show Gist options
  • Save bpolania/3f6646fbb3f26c5039481d1e18a55681 to your computer and use it in GitHub Desktop.
Save bpolania/3f6646fbb3f26c5039481d1e18a55681 to your computer and use it in GitHub Desktop.
[Unit]
Description=cosmovisor
After=network.target
[Service]
Type=simple
User=ec2-user
Group=ec2-user
ExecStart=/usr/local/bin/cosmovisor run run --home=/home/ec2-user/story
Restart=on-failure
RestartSec=5s
LimitNOFILE=65535
Environment="DAEMON_NAME=story"
Environment="DAEMON_HOME=/home/ec2-user/story"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="DAEMON_DATA_BACKUP_DIR=/home/ec2-user/story/backup"
WorkingDirectory=/home/ec2-user
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment