[BF] Making service linux running
This commit is contained in:
parent
25e1e5165d
commit
1c84703ac6
@ -31,8 +31,8 @@ using System.Runtime.InteropServices;
|
|||||||
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
|
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
|
||||||
// übernehmen, indem Sie "*" eingeben:
|
// übernehmen, indem Sie "*" eingeben:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.5.2")]
|
[assembly: AssemblyVersion("1.5.3")]
|
||||||
[assembly: AssemblyFileVersion("1.5.2")]
|
[assembly: AssemblyFileVersion("1.5.3")]
|
||||||
[assembly: NeutralResourcesLanguage("de-DE")]
|
[assembly: NeutralResourcesLanguage("de-DE")]
|
||||||
|
|
||||||
// “Internet Of Things” icon by By Michael Wohlwend, US, from thenounproject.com.
|
// “Internet Of Things” icon by By Michael Wohlwend, US, from thenounproject.com.
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,3 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
sudo systemctl is-active --quiet zwaybot && service zwaybot restart
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
service zwaybot stop
|
|
||||||
useradd -M zwaybot
|
useradd -M zwaybot
|
||||||
usermod -L zwaybot
|
usermod -L zwaybot
|
||||||
groupadd zwaybot
|
groupadd zwaybot
|
||||||
|
@ -13,6 +13,7 @@ ExecStart=/usr/bin/mono /usr/local/bin/zwaybot/Zway-Bot.exe
|
|||||||
KillMode=control-group
|
KillMode=control-group
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
StandardOutput=null
|
StandardOutput=null
|
||||||
|
StandardError=syslog+journal
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user