Skip to content

Instantly share code, notes, and snippets.

@lionell
Created July 28, 2017 02:19
Show Gist options
  • Save lionell/34c6d2bc58df11462fb73d034b2d21d1 to your computer and use it in GitHub Desktop.
Save lionell/34c6d2bc58df11462fb73d034b2d21d1 to your computer and use it in GitHub Desktop.
Tmux systemd service
// Put this file in /etc/systemd/system/tmux.service
[Unit]
Description=Tmux server
[Service]
Type=forking
User=lionell
ExecStart=/usr/bin/tmux new -s 0 -d
ExecStop=/usr/bin/tmux kill-server
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment