Need help with autostarting stash on Raspberry Pi 4

Hello there!

I need some help here. I have a stash instance running on my RPI4. it works just fine if i launch the application myself from the gui.

But i want to use it as a server so i can access it over the network via ip, so i want stash to autostart when i turn on the rpi

I’ve been working on this for many hours but cant seem to get it to work. I’ve tried many auto start locations, tried .desktop files in numerous places but some of them dont work and others briefly show an empty terminal and then close. the pi auto logins on startup,

note: the stash app is located on an external ssd connected via usb 3.0

can anyone help me please?

Create a text file as an admin user /etc/systemd/system/stash.service with something like the below, change your_user with the username you use rg raspberry, Ubuntu or whatever you have created and where you have downloaded stash-linux.

[Unit]
Description=Stash Service

After=network.target

[Service]
Type=simple
Restart=on-failure
RestartSec=5
User=your_user
ExecStart=/home/your_user/stash-linux
WorkingDirectory=/home/your_usrer/.stash/

[Install]
WantedBy=multi-user.target

You then need to reload systemd and start the service or restart the pi.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.