Hi,
I have a VPS, and trying to work out the full location of the files so I can create a service so my B4J app runs on system start up (in case my service reboots).
I have used SFTP and copied the files to my VPS and now trying to run them but I need to work out the full location to where they were copied to.
In the navigation up the top (in the image below) it shows /root/Java
Is that the full location of my files ?
My script shows:
(I have been following this tutorial: https://www.b4x.com/android/forum/t...ice-and-automatically-starting-at-boot.85739/)
I then run: sudo systemctl enable CloudServer.service
(got no reply other than allowing me to type another command)
Then I used: sudo systemctl start CloudServer.service
However that shows an error.
Running systemctl status CloudServer.service it shows:
● CloudServer.service - CloudServer Service
Loaded: error (Reason: Invalid argument)
Active: inactive (dead)
Mar 31 17:41:06 rubber-global systemd[1]: [/etc/systemd/system/CloudServer.service:7] Executable path is not absolute, ignoring: ~/Java/bin/ -jar ~/CloudServer/CloudServer.jar
Mar 31 17:41:06 rubber-global systemd[1]: CloudServer.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
Mar 31 17:46:25 rubber-global systemd[1]: [/etc/systemd/system/CloudServer.service:7] Executable path specifies a directory, ignoring: /Java/bin/ -jar /CloudServer/CloudServer.j
Mar 31 17:46:25 rubber-global systemd[1]: CloudServer.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
Mar 31 17:48:23 rubber-global systemd[1]: [/etc/systemd/system/CloudServer.service:7] Executable path specifies a directory, ignoring: /root/Java/bin/ -jar /root/CloudServer/Clo
Mar 31 17:48:23 rubber-global systemd[1]: CloudServer.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
Mar 31 18:19:36 rubber-global systemd[1]: [/etc/systemd/system/CloudServer.service:7] Executable path specifies a directory, ignoring: /root/Java/bin/ -jar /root/CloudServer/Clo
Mar 31 18:19:36 rubber-global systemd[1]: CloudServer.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
lines 1-12/12 (END)
Am I doing this correct or do I have the path wrong, or is there something else ?
I have a VPS, and trying to work out the full location of the files so I can create a service so my B4J app runs on system start up (in case my service reboots).
I have used SFTP and copied the files to my VPS and now trying to run them but I need to work out the full location to where they were copied to.
In the navigation up the top (in the image below) it shows /root/Java
Is that the full location of my files ?
My script shows:
(I have been following this tutorial: https://www.b4x.com/android/forum/t...ice-and-automatically-starting-at-boot.85739/)
I then run: sudo systemctl enable CloudServer.service
(got no reply other than allowing me to type another command)
Then I used: sudo systemctl start CloudServer.service
However that shows an error.
Running systemctl status CloudServer.service it shows:
● CloudServer.service - CloudServer Service
Loaded: error (Reason: Invalid argument)
Active: inactive (dead)
Mar 31 17:41:06 rubber-global systemd[1]: [/etc/systemd/system/CloudServer.service:7] Executable path is not absolute, ignoring: ~/Java/bin/ -jar ~/CloudServer/CloudServer.jar
Mar 31 17:41:06 rubber-global systemd[1]: CloudServer.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
Mar 31 17:46:25 rubber-global systemd[1]: [/etc/systemd/system/CloudServer.service:7] Executable path specifies a directory, ignoring: /Java/bin/ -jar /CloudServer/CloudServer.j
Mar 31 17:46:25 rubber-global systemd[1]: CloudServer.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
Mar 31 17:48:23 rubber-global systemd[1]: [/etc/systemd/system/CloudServer.service:7] Executable path specifies a directory, ignoring: /root/Java/bin/ -jar /root/CloudServer/Clo
Mar 31 17:48:23 rubber-global systemd[1]: CloudServer.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
Mar 31 18:19:36 rubber-global systemd[1]: [/etc/systemd/system/CloudServer.service:7] Executable path specifies a directory, ignoring: /root/Java/bin/ -jar /root/CloudServer/Clo
Mar 31 18:19:36 rubber-global systemd[1]: CloudServer.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
lines 1-12/12 (END)
Am I doing this correct or do I have the path wrong, or is there something else ?