Compare commits
2 commits
44fa9ff9b7
...
f3950c9a59
| Author | SHA1 | Date | |
|---|---|---|---|
| f3950c9a59 | |||
| 356460cc1c |
1 changed files with 8 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ After=network.target
|
|||
[Service]
|
||||
Type=simple
|
||||
ExecStart=<path/to/respository>/start.sh
|
||||
WorkingDirectory=<path/to/repository>
|
||||
ExecStop=/usr/bin/pkill docs.brut.systems
|
||||
Restart=always
|
||||
User=<user to run as>
|
||||
|
|
@ -32,3 +33,10 @@ Environment="PORT=<port>"
|
|||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
Then start the service:
|
||||
|
||||
```sh
|
||||
$ sudo systemctl enable docs.brut.service
|
||||
$ sudo systemctl start docs.brut.service
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue