Versie 1.0.1

This commit is contained in:
Chris Josten 2021-04-09 14:57:26 +02:00
parent e0f0e6b05c
commit 2ac806f8e1
3 changed files with 5 additions and 4 deletions

View file

@ -1,6 +1,6 @@
project(
'MVOAU Ober', 'd',
version: '1.0.0',
version: '1.0.1',
license: 'MIT',
meson_version: '>= 0.52'
)

View file

@ -5,8 +5,9 @@ After=network-online.target
[Service]
Environment="WACHTTIJD=15"
Environment="OBER=127.0.0.1"
Type=idle
ExecStart=mvoau $WACHTTIJD
ExecStart=mvoau $WACHTTIJD $OBER
Restart=on-failure
RestartSec=3
User=root

View file

@ -238,7 +238,7 @@ public:
*/
bool gebruikersActief() {
auto resultaat = execute(["who"]);
return resultaat.output.splitLines().length == 0;
return resultaat.output.splitLines().length 1= 0;
}
void sluitAf() {
@ -257,7 +257,7 @@ int main(string[] args) {
}
} else {
scope(failure) stderr.writefln("GEBRUIK: %s WACHTTIJD", args[0]);
if (args.length < 2) {
if (args.length < 3) {
stderr.writefln("GEBRUIK: %s WACHTTIJD", args[0]);
return -1;
}