Hi Freigeist thanks for helping. I have created a new bash script and change the systemctl file to test but still no good. This is what I got at the cmd line:
pi@raspberrypi:~ $ systemctl status nemNode
● nemNode.service - nem node
Loaded: loaded (/etc/systemd/system/nemNode.service; static)
Active: inactive (dead)
pi@raspberrypi:~ $ systemctl start nemNode
Failed to start nemNode.service: Access denied
pi@raspberrypi:~ $
This is what I have in nemNode.service file
[Unit]
Description=nem node
After=multi-user.target
[Service]
Type=idle
ExecStart=/home/pi/nis/package/nix.runNis.sh
[install]
WantedBy=multi-user.target
This is what I tried in .nix.nisRun.sh file
#!/bin/sh
cd /home/pi/nis/package/
./nix.runNish.sh
But this did not work at the cmd line see above.
The original .nix.nisRun.sh file had this:
#!/bin/bash
cd nis
java -Xms512M -Xmx1G -cp ".:./*:../libs/*" org.nem.deploy.CommonStarter
cd -
When I manually enter
cd /home/pi/nis/package
then hit Return, and then type:
./nix.nisRun.sh
The program runs.