Compare commits

...

2 commits

Author SHA1 Message Date
9ac62fdf89 update build script 2024-09-15 20:12:10 -06:00
69dfeab125 add systemd service 2024-09-15 20:11:37 -06:00
2 changed files with 14 additions and 0 deletions

View file

@ -9,6 +9,7 @@ if [ "$choice" = "y" ]; then
echo "building backend!"
cd backend
./gradlew shadowJar
systemctl restart nelle-observer-api
elif [ "$choice" = "n" ]; then
echo "exiting..."
elif [ "$choice" = "c" ]; then
@ -22,6 +23,7 @@ elif [ "$choice" = "n" ]; then
echo "building backend!"
cd backend
./gradlew shadowJar
systemctl restart nelle-observer-api
elif [ "$choice" = "n" ]; then
echo "exiting..."
elif [ "$choice" = "c" ]; then

View file

@ -0,0 +1,12 @@
[Unit]
Description=nelle.observer API Daemon
[Service]
Type=simple
ExecStart=/usr/bin/java -jar personalSiteAPI-all.jar
WorkingDirectory={PathTo}/nelle-observer/backend/build/libs/
SyslogIdentifier=personalSiteAPI
Restart=always
[Install]
WantedBy=multi-user.target