cottak 0.1.1

A built in test application for Linux using dynamic libraries in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

# Ensure the configuration directory exists
mkdir -p /etc/cot

# Copy the default configuration file if it doesn't exist
if [ ! -f /etc/cot/config.toml ]; then
    cp /usr/local/bin/config.toml /etc/cot/config.toml
fi

# Restart the service if it's running
if systemctl is-active --quiet cot; then
    systemctl restart cot
fi

exit 0