revision
This commit is contained in:
80
debian/README.md
vendored
80
debian/README.md
vendored
@@ -1,41 +1,41 @@
|
||||
Utilitários
|
||||
Serviços / auto Arranque
|
||||
path onde guardar os ficheiros de configuração
|
||||
|
||||
etc/systemd/system
|
||||
|
||||
extensão o ficheiro .service
|
||||
|
||||
Sampleservice.service
|
||||
[Unit]
|
||||
|
||||
Description=My Service
|
||||
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
|
||||
Type=simple
|
||||
|
||||
Restart=always
|
||||
|
||||
ExecStart=/usr/local/bin/myservice
|
||||
|
||||
Exemplo de service Site .Net Core
|
||||
[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]
|
||||
|
||||
Utilitários
|
||||
Serviços / auto Arranque
|
||||
path onde guardar os ficheiros de configuração
|
||||
|
||||
etc/systemd/system
|
||||
|
||||
extensão o ficheiro .service
|
||||
|
||||
Sampleservice.service
|
||||
[Unit]
|
||||
|
||||
Description=My Service
|
||||
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
|
||||
Type=simple
|
||||
|
||||
Restart=always
|
||||
|
||||
ExecStart=/usr/local/bin/myservice
|
||||
|
||||
Exemplo de service Site .Net Core
|
||||
[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