From abd39afecf0758749ba34ffb4007ccbef100cc96 Mon Sep 17 00:00:00 2001 From: next2w Date: Tue, 4 Oct 2022 16:15:27 -0400 Subject: Add systemd user services --- piano-backend.service | 6 ++++++ piano-frontend.service | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 piano-backend.service create mode 100644 piano-frontend.service diff --git a/piano-backend.service b/piano-backend.service new file mode 100644 index 0000000..ddc274c --- /dev/null +++ b/piano-backend.service @@ -0,0 +1,6 @@ +[Service] +ExecStart=python app.py +WorkingDirectory=%h/piano-appp/backend + +[Install] +WantedBy=default.target diff --git a/piano-frontend.service b/piano-frontend.service new file mode 100644 index 0000000..8e356b2 --- /dev/null +++ b/piano-frontend.service @@ -0,0 +1,6 @@ +[Service] +ExecStart=npm run start +WorkingDirectory=%h/piano-appp + +[Install] +WantedBy=default.target -- cgit v1.2.3-70-g09d2