personal_website
This commit is contained in:
24
files/my-app.service
Normal file
24
files/my-app.service
Normal file
@@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
# describe the app
|
||||
Description=My App
|
||||
# start the app after the network is available
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
# usually you'll use 'simple'
|
||||
# one of https://www.freedesktop.org/software/systemd/man/systemd.service.html#Type=
|
||||
Type=simple
|
||||
# which user to use when starting the app
|
||||
User=root
|
||||
# path to your application's root directory
|
||||
WorkingDirectory=/root/personal_website
|
||||
# the command to start the app
|
||||
# requires absolute paths
|
||||
ExecStart=/root/.bun/bin/bun app.js
|
||||
# restart policy
|
||||
# one of {no|on-success|on-failure|on-abnormal|on-watchdog|on-abort|always}
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
# start the app automatically
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user