Versie 1.0.1
This commit is contained in:
parent
e0f0e6b05c
commit
2ac806f8e1
|
@ -1,6 +1,6 @@
|
|||
project(
|
||||
'MVOAU Ober', 'd',
|
||||
version: '1.0.0',
|
||||
version: '1.0.1',
|
||||
license: 'MIT',
|
||||
meson_version: '>= 0.52'
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue