Open dewarim opened 1 year ago
I can add to that - I wrote some docs that do the job - needs to be adapted, is related to the VM I installed to which was Ubuntu 22.04...
/opt/cinnamon/runc4.sh
#!/bin/bash export JAVA_HOME=/opt/jdk-17.0.2 export PATH=$PATH:$JAVA_HOME/bin cd /opt/cinnamon java -jar cinnamon-server.jar --config cinnamon-config.xml
http://localhost:8080/cinnamon
NOTE: You should see a response like this: Cinnamon 4 Server
Cinnamon 4 Server
/etc/systemd/system/cinnamon.service
[Unit] Description=Cinnamon Server After=postgresql
[Service] User=root ;Group=groupname WorkingDirectory=/opt/cinnamon ExecStart=/opt/cinnamon/runc4.sh Environment="JAVA_HOME=/opt/jdk-17.0.2" Environment="PATH=$PATH:$JAVA_HOME/bin"
[Install] WantedBy=multi-user.target
* Load the service unit and enable and start the service:
systemctl daemon-reload systemctl enable cinnamon.service systemctl start cinnamon.service
I can add to that - I wrote some docs that do the job - needs to be adapted, is related to the VM I installed to which was Ubuntu 22.04...
Create and test startup script
/opt/cinnamon/runc4.sh
with the following content:/opt/cinnamon/runc4.sh
.http://localhost:8080/cinnamon
.Set up Cinnamon service
/etc/systemd/system/cinnamon.service
.[Service] User=root ;Group=groupname WorkingDirectory=/opt/cinnamon ExecStart=/opt/cinnamon/runc4.sh Environment="JAVA_HOME=/opt/jdk-17.0.2" Environment="PATH=$PATH:$JAVA_HOME/bin"
[Install] WantedBy=multi-user.target
systemctl daemon-reload systemctl enable cinnamon.service systemctl start cinnamon.service