documentation refactoring
This commit is contained in:
1 parent
2af6388c2e
commit
98c4681aed
16 files changed
+528
-580
No files matched your search
@@ -0,0 +1,28 @@
|
||||
# systemd
|
||||
|
||||
## Services
|
||||
|
||||
**Creating an sevice:**
|
||||
|
||||
``` bash
|
||||
#/etc/systemd/system/myservice.service
|
||||
[Unit]
|
||||
Description=My Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
ExecStart=/usr/local/bin/myservice
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/var/www/netcore/hellomvc
|
||||
ExecStart=/usr/local/bin/dotnet /var/www/netcore/hellomvc/hellomvc2.dll --urls="http://*:5049"
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
SyslogIdentifier=dotnet-example
|
||||
User=www-data
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
Reference in new issue
Block a user