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
cat <<EOF > /lib/systemd/system/[[[name]]].service | |
[Unit] | |
Description=[[[The Service to watch]]] | |
After=local-fs.target | |
[Service] | |
Type=simple | |
PIDFile=/var/run/[[[name]]].pid | |
ExecStart=/opt/[[[script.sh]]] | |
Restart=always |
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
// (see the blog post at https://andrewdupont.net/2018/04/27/laundry-spy-part-3-the-software/) | |
// Version 1.0 by https://github.com/savetheclocktower | |
// Version 1.1 by https://github.com/dhowdy/ | |
// GENERAL CONFIG | |
// ============== | |
// The baud rate of serial output for logging. If necessary, change the baud | |
// rate in your Serial Monitor to match this. | |
#define BAUD_RATE 115200 |