kdungs / dun.gs

My personal website/blog. This repository contains the configuration and the raw markdown files. It's also used to facilitate discussions on articles via issues.
https://dun.gs
Other
0 stars 0 forks source link

2020-09-24 How to set up a Windward server on GCP and some insight into systemd #10

Open kdungs opened 4 years ago

kdungs commented 4 years ago

Discussion thread on the article "How to set up a Windward server on GCP and some insight into systemd" posted by Kevin on September 24, 2020.

furtivesage commented 1 year ago

Hello kdungs,

I am not sure I am following this section of your article. Am I creating a directory path and then using Nano to create a windward.service file? What is the entire path where the windward.service is located?

I have had little experience with this procedure. Thank you.

Then, create ~/.config/systemd/user/windward.service with the following contents

[Unit] Description=Windward Dedicated Server

[Service] Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/tmux new-session -d -s Windward %h/start-server.sh ExecStop=/usr/bin/tmux send-keys -t Windward q Enter Enter

[Install] WantedBy=default.target Enable and start the service via

systemctl --user enable windward.service systemctl --user start windward.service

kdungs commented 1 year ago

Hi! Cool that you found my post useful. The full path is ~/.config/systemd/user/windward.service. On Linux, ~ is a shorthand for the current user's home directory. So starting from your home, the relative path is .config/systemd/user/windward.service.

Does that help?

furtivesage commented 1 year ago

Yes, I will give that a try. Thank you for responding, I greatly appreciate it.

Best Regards,

Ryan

On Sun, May 21, 2023 at 11:59 AM Kevin Dungs @.***> wrote:

Hi! Cool that you found my post useful. The full path is ~/.config/systemd/user/windward.service. On Linux, ~ is a shorthand for the current user's home directory. So starting from your home, the relative path is .config/systemd/user/windward.service.

Does that help?

— Reply to this email directly, view it on GitHub https://github.com/kdungs/dun.gs/issues/10#issuecomment-1556213622, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXCFRXDTYBDITWK2KLHSILXHI3W5ANCNFSM4SCSBMXQ . You are receiving this because you commented.Message ID: <kdungs/dun. @.***>