Skip to content

Latest commit

 

History

History

systemctl

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Resources

Running this chess engine as a systemd service on Ubuntu

  1. Build the executable
    $ go build -o glee cmd/glee/main.go
    
  2. Move the binary to a folder in your path, e.g.
    $ sudo cp glee /usr/local/bin/
    
  3. Update glee.service ConditionPathExists, User, Group, WorkingDirectory, and ExecStart as needed.
  4. Move glee.service to /lib/systemd/system/glee.service
    $ sudo cp config/systemctl/glee.service /lib/systemd/system/
    
  5. Update the file permissions
    $ sudo chmod 755 /lib/systemd/system/glee.service
    
  6. Start the service
    $ sudo systemctl glee start
    $ // if this fails with 'unknown operation' try `sudo systemctl start glee`
    
  7. Monitor the service ouput
    $ journalctl -f -u glee
    
  8. Enable the service to start at boot
    $ sudo systemctl enable glee