dewarim / cinnamon4

Cinnamon CMS - version 4
Apache License 2.0
2 stars 0 forks source link

add instructions on how to start server on system startup #357

Open dewarim opened 1 year ago

boris-horner commented 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...

Create and test startup script

Set up 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

* Load the service unit and enable and start the service:

systemctl daemon-reload systemctl enable cinnamon.service systemctl start cinnamon.service