<commit_before>### Send watchdog notifications to systemd

Lib for java daemons to send keep-alive messages to refresh the systemd watchdog timestamp.

Use the version 1.1 build artifact.
```xml
	<groupId>org.tricorder</groupId>
	<artifactId>java-sysd-notify-watchdog</artifactId>
	<version>1.1</version>
```  
 
#### Simple Usage
 
```java
	SysDNotifier() notifier = new SysDNotifier();
 	notifier.start();
```
 
#### Advanced Usage
```java
	SysDNotifier notifier = new SysDNotifier();
	notifier.setAuditor(new Auditor() {
		@Override
		public boolean allGood() {				
			//Do more extensive internal checking of the process, if ok, return true.
			//Returning false will have the effect of suppressing the keep-alive 
			//message, causing systemd to kill and restart the process. 
			return true;
		}
	});
	notifier.start();
 ```
 
#### .service file layout 
```shell
[Unit]
Description=My Service

[Service]
PIDFile=/tmp/my-service.pid
Environment=LD_PRELOAD=/usr/lib64/libsystemd-daemon.so
ExecStart=/usr/lib/jvm/java-1.8.0/bin/java -jar /usr/local/bin/my-service.jar
WatchdogSec=500
Restart=on-failure

[Install]
WantedBy=multi-user.target

```
  <commit_msg>Added link to other project<commit_after>### Send watchdog notifications to systemd

Lib for java daemons to send keep-alive messages to refresh the systemd watchdog timestamp.
Or you can use this [project](https://github.com/ericbets/shell-sysd-notify-watchdog) to do it using /usr/bin/systemd-notify utility.

Use the version 1.1 build artifact.
```xml
	<groupId>org.tricorder</groupId>
	<artifactId>java-sysd-notify-watchdog</artifactId>
	<version>1.1</version>
```  
 
#### Simple Usage
 
```java
	SysDNotifier() notifier = new SysDNotifier();
 	notifier.start();
```
 
#### Advanced Usage
```java
	SysDNotifier notifier = new SysDNotifier();
	notifier.setAuditor(new Auditor() {
		@Override
		public boolean allGood() {				
			//Do more extensive internal checking of the process, if ok, return true.
			//Returning false will have the effect of suppressing the keep-alive 
			//message, causing systemd to kill and restart the process. 
			return true;
		}
	});
	notifier.start();
 ```
 
#### .service file layout 
```shell
[Unit]
Description=My Service

[Service]
#PIDFile=/tmp/my-service.pid
Environment=LD_PRELOAD=/usr/lib64/libsystemd-daemon.so
ExecStart=/usr/lib/jvm/java-1.8.0/bin/java -jar /usr/local/bin/my-service.jar
WatchdogSec=500
Restart=on-failure

[Install]
WantedBy=multi-user.target

```
  
{'fraction_non_alphanumeric': 0.13120710536939847, 'fraction_numerical': 0.009689140088817117, 'mean_word_length': 4.25, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1707804', 'n_tokens_mistral': 905, 'n_tokens_neox': 811, 'n_words': 220}