Skip to content

Commit

Permalink
add systemd service configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sirodoht committed Oct 19, 2021
1 parent c5a44b0 commit 198510d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ mkdir music # this is for the music files / collection
npm start
```

## systemd

```sh
cp dstream.service /etc/systemd/system/
```

## Scanning music

Add music files from the /music directory to the searchable database
Expand Down
16 changes: 16 additions & 0 deletions dstream.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Unit]
Description=dstream service
After=syslog.target

[Service]
ExecStart=/usr/local/bin/node /home/srv-dstream/dstream/server.js
WorkingDirectory=/home/srv-dstream/dstream
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=dstream
User=srv-dstream
Group=srv-dstream
Environment=NODE_ENV=production

[Install]
WantedBy=multi-user.target

0 comments on commit 198510d

Please sign in to comment.