<commit_before>---
layout: default
title: Services
---

<h1>Services Module</h1>
<p><span class="label label-primary">Botman</span></p>
<b>Compatibility :</b>
<img src={{ site.github.url }}/img/icon-linux.png>
<img src={{ site.github.url }}/img/icon-windows.png>
<img src={{ site.github.url }}/img/icon-freebsd.png>
<br /><br />

<h2>Description</h2>
This modules allow to (start|stop|restart) services on the system.<br />
For GNU/Linux and FreeBSD, a configuration file must be written to
know which commands to use for this.<br />
For windows machines, microsoft exports an API to do it, so no
configuration file is needed.
<br /><br />

<h2>Configuration</h2>
<div class="alert alert-dismissible alert-info">
If Botman is running on windows, you dont need to write a configuration file!
</div>
<pre><code class="json"><commit_msg>docs: Add configuration file location for the 'services' module.<commit_after>---
layout: default
title: Services
---

<h1>Services Module</h1>
<p><span class="label label-primary">Botman</span></p>
<b>Compatibility :</b>
<img src={{ site.github.url }}/img/icon-linux.png>
<img src={{ site.github.url }}/img/icon-windows.png>
<img src={{ site.github.url }}/img/icon-freebsd.png>
<br /><br />

<h2>Description</h2>
This modules allow to (start|stop|restart) services on the system.<br />
For GNU/Linux and FreeBSD, a configuration file must be written to
know which commands to use for this.<br />
For windows machines, microsoft exports an API to do it, so no
configuration file is needed.
<br /><br />

<h2>Configuration</h2>
<div class="alert alert-dismissible alert-info">
If Botman is running on windows, you dont need to write a configuration file!
</div>
Example configuration file (<code>/usr/local/etc/gotham/modules.conf.d/services.conf</code>) :
<pre><code class="json">
{'fraction_non_alphanumeric': 0.1582138919514884, 'fraction_numerical': 0.006615214994487321, 'mean_word_length': 4.761904761904762, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3714894', 'n_tokens_mistral': 592, 'n_tokens_neox': 584, 'n_words': 199}