Browse Source

svc adjustment

master
michael 5 years ago
parent
commit
e152b0eb88
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      nas-webdav.service
  2. +2
    -1
      start.sh

+ 1
- 1
nas-webdav.service View File

@@ -2,7 +2,7 @@
Description=NAS WebDav-Server Description=NAS WebDav-Server


[Service] [Service]
EnvironmentFile=-/etc/default/my-application
# EnvironmentFile=-/etc/default/my-application
ExecStart=/home/michael/nas-webdav/start.sh ExecStart=/home/michael/nas-webdav/start.sh
WorkingDirectory=/home/michael/nas-webdav WorkingDirectory=/home/michael/nas-webdav
LimitNOFILE=4096 LimitNOFILE=4096


+ 2
- 1
start.sh View File

@@ -1,2 +1,3 @@
#!/bin/bash #!/bin/bash
npm start
source .bashrc
node dist/index.js

Loading…
Cancel
Save