-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add monit system service in monit configuration
- Loading branch information
Showing
4 changed files
with
69 additions
and
11 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
html/pfappserver/root/src/views/Configuration/monit/_components/AlertServices.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<template> | ||
<b-alert :show="isModified" variant="warning" fade> | ||
<h4 class="alert-heading" v-t="'Warning'"/> | ||
<p> | ||
{{ $t('Some services must be restarted to load the new settings.') }} | ||
<span v-html="$t('Creating or modifying the monit configuration requires to restart the monit service.')"></span> | ||
</p> | ||
<base-button-system-service service="monit" restart start stop | ||
:disabled="isLoading" class="mr-1" size="sm"/> | ||
</b-alert> | ||
</template> | ||
<script> | ||
import { | ||
BaseButtonSystemService | ||
} from '@/components/new/' | ||
const components = { | ||
BaseButtonSystemService | ||
} | ||
const props = { | ||
isLoading: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
isModified: { | ||
type: Boolean, | ||
default: true | ||
} | ||
} | ||
const setup = () => {} | ||
// @vue/component | ||
export default { | ||
name: 'alert-services', | ||
inheritAttrs: false, | ||
components, | ||
props, | ||
setup | ||
} | ||
</script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters