We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af92be1 commit 7e2cecaCopy full SHA for 7e2ceca
server/plugins-available/incron_plugin.inc.php
@@ -159,6 +159,11 @@ private function getPhpService($fastcgiPhpVersion) {
159
private function restartIncronService() {
160
global $app;
161
162
- exec($app->system->getinitcommand('incrond', 'restart'));
+ $serviceName = 'incrond';
163
+ if (file_exists('/etc/debian_version')) {
164
+ $serviceName = 'incron';
165
+ }
166
+
167
+ exec($app->system->getinitcommand($serviceName, 'restart'));
168
}
169
0 commit comments