[Unit] Description=Redmine Requires=network.target Requires=postgresql.service [Service] Type=simple User=root Group=users WorkingDirectory=/opt/redmine Environment=RAILS_SERVE_STATIC_FILES=true ExecStart=/bin/bash -c "/opt/redmine/bin/rails s -e production -b 127.0.0.1 -p 3000" TimeoutSec=30 RestartSec=15s Restart=always [Install] WantedBy=multi-user.target