mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 21:55:42 +12:00
Update HISP.service
This commit is contained in:
parent
95749fa194
commit
0481b96f2c
2 changed files with 6204 additions and 6194 deletions
|
@ -9,17 +9,28 @@ After=mariadb.service
|
|||
|
||||
|
||||
[Service]
|
||||
RestartSec=2s
|
||||
RestartSec=5s
|
||||
Restart=on-abort
|
||||
|
||||
Type=simple
|
||||
|
||||
# Disable access to features HISP doesnt need
|
||||
# (For security ...)
|
||||
ProtectSystem=full
|
||||
PrivateDevices=true
|
||||
ProtectHome=true
|
||||
|
||||
StandardError=syslog+console
|
||||
StandardOutput=syslog+console
|
||||
|
||||
User=horseisle
|
||||
Group=horseisle
|
||||
|
||||
WorkingDirectory=/etc/hisp
|
||||
ExecStart=/usr/bin/HISPCli
|
||||
|
||||
Restart=always
|
||||
Environment=USER=horseisle HOME=/etc/hisp/home HISP_BASE_DIR=/etc/hisp HISP_CONF_FILE=/etc/hisp/server.properties
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Alias=hisp.service
|
|
@ -53,7 +53,6 @@ namespace HISP.Server
|
|||
else
|
||||
ConnectionString = "Data Source=\"" + ConfigReader.DatabaseName + ".db\";";
|
||||
|
||||
Logger.InfoPrint(ConnectionString);
|
||||
|
||||
using (DbConnection db = connectDb())
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue