<commit_before># Configuring Ackee with Systemd
*We assume your Ackee is located in /opt/Ackee*

 1. Make index.js executable with: `chmod +x /opt/Ackee/src/index.js`
 2. Create a file /etc/systemd/system/ackee.service
```
[Unit]
Description=Ackee

[Service]
ExecStart=/opt/Ackee/src/index.js
Restart=always
User=nobody
Group=nogroup
Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production
WorkingDirectory=/opt/Ackee

[Install]
WantedBy=multi-user.target
```
3. Start the service with: `systemctl start ackee.service`, check status with `systemctl status ackee.service` output should look like this:
```
Ackee systemd[1]: Started Ackee.
[Ackee] <E2><80><BA> <E2><80><A6>  awaiting  Connecting to mongodb://localhost:27017/ackee
(node:22526) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and
[Ackee] <E2><80><BA> <E2><9C><94>  success   Connected to mongodb://localhost:27017/ackee
[Ackee] <E2><80><BA> <E2><96><B6>  start     Starting the server
[Ackee] <E2><80><BA> <E2><80><A6>  watching  Listening on http://localhost:3000
```
4. Enable the service on boot with `systemctl enable ackee.service`<commit_msg>Update styling to fit to other docs<commit_after># Configuring Ackee with Systemd

*We assume that your Ackee is located in `/opt/Ackee`*

## 1. Make Ackee executable

Make the `index.js` executable with `chmod +x /opt/Ackee/src/index.js`.

## 2. Create the service

Create a file named `ackee.service` in `/etc/systemd/system/`.
 
```
[Unit]
Description=Ackee

[Service]
ExecStart=/opt/Ackee/src/index.js
Restart=always
User=nobody
Group=nogroup
Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production
WorkingDirectory=/opt/Ackee

[Install]
WantedBy=multi-user.target
```

# 3. Start the service

Start the service with `systemctl start ackee.service` and check if everything is up and running with `systemctl status ackee.service`.

# 4. Enable the service

Enable the service on boot with `systemctl enable ackee.service`.
{'fraction_non_alphanumeric': 0.1261845386533666, 'fraction_numerical': 0.027930174563591023, 'mean_word_length': 5.249221183800623, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '1251311', 'n_tokens_mistral': 723, 'n_tokens_neox': 672, 'n_words': 200}