Skip to content

Instantly share code, notes, and snippets.

@quonic
Last active June 3, 2026 20:45
Show Gist options
  • Select an option

  • Save quonic/64ae08ace4c589fa40b612e15a97f774 to your computer and use it in GitHub Desktop.

Select an option

Save quonic/64ae08ace4c589fa40b612e15a97f774 to your computer and use it in GitHub Desktop.
My dune-admin setup for systemd and update script

My dune-admin Setup for AMP

This all assumes that your AMP install is under the amp user.

Install dune-admin

cd ~/
# Install Git: Pick the one that suite your system
#sudo apt install git
#sudo dnf install git
git clone https://github.com/Icehunter/dune-admin.git
cd dune-admin

Follow https://github.com/Icehunter/dune-admin/blob/main/SETUP_LOCAL.md for AMP related instructions.

make setup
make build

SystemD Service

mkdir -p ~/.config/systemd/user/
nano ~/.config/systemd/user/dune-admin.service

Paste(Control+Shift+V):

[Unit]
Description=Dune Admin Service
After=network.target

[Service]
ExecStart=/home/amp/dune-admin/dune-admin
WorkingDirectory=/home/amp/dune-admin
Restart=always
RestartSec=3
KillSignal=SIGINT
TimeoutStopSec=15s

[Install]
WantedBy=default.target
systemctl --user daemon-reload
systemctl --user enable dune-admin.service
systemctl --user start dune-admin.service

Create update script

nano ~/update-admin.sh

Paste(Control+Shift+V):

#!/bin/bash

cd dune-admin/
systemctl --user stop dune-admin.service
git pull
make build
systemctl --user start dune-admin.service
systemctl --user status dune-admin.service
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment