Skip to content

Commit 7e2ceca

Browse files
author
Webslice
committed
#5218 incrond service is called 'incron' on debian
1 parent af92be1 commit 7e2ceca

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

server/plugins-available/incron_plugin.inc.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ private function getPhpService($fastcgiPhpVersion) {
159159
private function restartIncronService() {
160160
global $app;
161161

162-
exec($app->system->getinitcommand('incrond', 'restart'));
162+
$serviceName = 'incrond';
163+
if (file_exists('/etc/debian_version')) {
164+
$serviceName = 'incron';
165+
}
166+
167+
exec($app->system->getinitcommand($serviceName, 'restart'));
163168
}
164169
}

0 commit comments

Comments
 (0)