Harden service restart and disable Zellij UI artifacts
Service: add TimeoutStopSec=5 and SendSIGKILL=yes so restarts don't hang on stubborn claude processes. Reduce RestartSec to 3s. Zellij: disable session serialization, release notes, and splash screen so sessions always start fresh with the bare layout. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -15,8 +15,14 @@ WorkingDirectory=/mnt/media/Projects
|
|||||||
# -t fontSize=14: Terminal font size
|
# -t fontSize=14: Terminal font size
|
||||||
ExecStart=/usr/local/bin/ttyd -p 8888 -W -a -t fontSize=14 /usr/local/bin/clide-launcher
|
ExecStart=/usr/local/bin/ttyd -p 8888 -W -a -t fontSize=14 /usr/local/bin/clide-launcher
|
||||||
|
|
||||||
|
# Kill all child processes (ttyd → zellij → clide → claude)
|
||||||
|
KillMode=control-group
|
||||||
|
KillSignal=SIGTERM
|
||||||
|
TimeoutStopSec=5
|
||||||
|
SendSIGKILL=yes
|
||||||
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=10
|
RestartSec=3
|
||||||
|
|
||||||
# Environment for 256-color + truecolor
|
# Environment for 256-color + truecolor
|
||||||
Environment="TERM=xterm-256color"
|
Environment="TERM=xterm-256color"
|
||||||
|
|||||||
+73
-73
@@ -275,33 +275,33 @@ load_plugins {
|
|||||||
web_client {
|
web_client {
|
||||||
font "monospace"
|
font "monospace"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use a simplified UI without special fonts (arrow glyphs)
|
// Use a simplified UI without special fonts (arrow glyphs)
|
||||||
// Options:
|
// Options:
|
||||||
// - true
|
// - true
|
||||||
// - false (Default)
|
// - false (Default)
|
||||||
//
|
//
|
||||||
// simplified_ui true
|
// simplified_ui true
|
||||||
|
|
||||||
// Choose the theme that is specified in the themes section.
|
// Choose the theme that is specified in the themes section.
|
||||||
// Default: default
|
// Default: default
|
||||||
//
|
//
|
||||||
// theme "dracula"
|
// theme "dracula"
|
||||||
|
|
||||||
// Choose the base input mode of zellij.
|
// Choose the base input mode of zellij.
|
||||||
// Default: normal
|
// Default: normal
|
||||||
//
|
//
|
||||||
default_mode "locked"
|
default_mode "locked"
|
||||||
|
|
||||||
// Choose the path to the default shell that zellij will use for opening new panes
|
// Choose the path to the default shell that zellij will use for opening new panes
|
||||||
// Default: $SHELL
|
// Default: $SHELL
|
||||||
//
|
//
|
||||||
default_shell "/mnt/media/Projects/clide/.venv/bin/clide"
|
default_shell "/mnt/media/Projects/clide/.venv/bin/clide"
|
||||||
|
|
||||||
// Choose the path to override cwd that zellij will use for opening new panes
|
// Choose the path to override cwd that zellij will use for opening new panes
|
||||||
//
|
//
|
||||||
default_cwd "/mnt/media/Projects/clide"
|
default_cwd "/mnt/media/Projects/clide"
|
||||||
|
|
||||||
// The name of the default layout to load on startup
|
// The name of the default layout to load on startup
|
||||||
// Default: "default"
|
// Default: "default"
|
||||||
//
|
//
|
||||||
@@ -309,59 +309,59 @@ default_layout "bare"
|
|||||||
|
|
||||||
// Disable pane frames
|
// Disable pane frames
|
||||||
pane_frames false
|
pane_frames false
|
||||||
|
|
||||||
// The folder in which Zellij will look for layouts
|
// The folder in which Zellij will look for layouts
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
//
|
//
|
||||||
// layout_dir "/tmp"
|
// layout_dir "/tmp"
|
||||||
|
|
||||||
// The folder in which Zellij will look for themes
|
// The folder in which Zellij will look for themes
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
//
|
//
|
||||||
// theme_dir "/tmp"
|
// theme_dir "/tmp"
|
||||||
|
|
||||||
// Toggle enabling the mouse mode.
|
// Toggle enabling the mouse mode.
|
||||||
// On certain configurations, or terminals this could
|
// On certain configurations, or terminals this could
|
||||||
// potentially interfere with copying text.
|
// potentially interfere with copying text.
|
||||||
// Options:
|
// Options:
|
||||||
// - true (default)
|
// - true (default)
|
||||||
// - false
|
// - false
|
||||||
//
|
//
|
||||||
// mouse_mode false
|
// mouse_mode false
|
||||||
|
|
||||||
// Toggle having pane frames around the panes
|
// Toggle having pane frames around the panes
|
||||||
// Options:
|
// Options:
|
||||||
// - true (default, enabled)
|
// - true (default, enabled)
|
||||||
// - false
|
// - false
|
||||||
//
|
//
|
||||||
// pane_frames false
|
// pane_frames false
|
||||||
|
|
||||||
// When attaching to an existing session with other users,
|
// When attaching to an existing session with other users,
|
||||||
// should the session be mirrored (true)
|
// should the session be mirrored (true)
|
||||||
// or should each user have their own cursor (false)
|
// or should each user have their own cursor (false)
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
// Default: false
|
// Default: false
|
||||||
//
|
//
|
||||||
// mirror_session true
|
// mirror_session true
|
||||||
|
|
||||||
// Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP
|
// Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP
|
||||||
// eg. when terminal window with an active zellij session is closed
|
// eg. when terminal window with an active zellij session is closed
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
// Options:
|
// Options:
|
||||||
// - detach (Default)
|
// - detach (Default)
|
||||||
// - quit
|
// - quit
|
||||||
//
|
//
|
||||||
// on_force_close "quit"
|
// on_force_close "quit"
|
||||||
|
|
||||||
// Configure the scroll back buffer size
|
// Configure the scroll back buffer size
|
||||||
// This is the number of lines zellij stores for each pane in the scroll back
|
// This is the number of lines zellij stores for each pane in the scroll back
|
||||||
// buffer. Excess number of lines are discarded in a FIFO fashion.
|
// buffer. Excess number of lines are discarded in a FIFO fashion.
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
// Valid values: positive integers
|
// Valid values: positive integers
|
||||||
// Default value: 10000
|
// Default value: 10000
|
||||||
//
|
//
|
||||||
// scroll_buffer_size 10000
|
// scroll_buffer_size 10000
|
||||||
|
|
||||||
// Provide a command to execute when copying text. The text will be piped to
|
// Provide a command to execute when copying text. The text will be piped to
|
||||||
// the stdin of the program to perform the copy. This can be used with
|
// the stdin of the program to perform the copy. This can be used with
|
||||||
// terminal emulators which do not support the OSC 52 ANSI control sequence
|
// terminal emulators which do not support the OSC 52 ANSI control sequence
|
||||||
@@ -371,127 +371,127 @@ pane_frames false
|
|||||||
// copy_command "xclip -selection clipboard" // x11
|
// copy_command "xclip -selection clipboard" // x11
|
||||||
// copy_command "wl-copy" // wayland
|
// copy_command "wl-copy" // wayland
|
||||||
// copy_command "pbcopy" // osx
|
// copy_command "pbcopy" // osx
|
||||||
//
|
//
|
||||||
// copy_command "pbcopy"
|
// copy_command "pbcopy"
|
||||||
|
|
||||||
// Choose the destination for copied text
|
// Choose the destination for copied text
|
||||||
// Allows using the primary selection buffer (on x11/wayland) instead of the system clipboard.
|
// Allows using the primary selection buffer (on x11/wayland) instead of the system clipboard.
|
||||||
// Does not apply when using copy_command.
|
// Does not apply when using copy_command.
|
||||||
// Options:
|
// Options:
|
||||||
// - system (default)
|
// - system (default)
|
||||||
// - primary
|
// - primary
|
||||||
//
|
//
|
||||||
// copy_clipboard "primary"
|
// copy_clipboard "primary"
|
||||||
|
|
||||||
// Enable automatic copying (and clearing) of selection when releasing mouse
|
// Enable automatic copying (and clearing) of selection when releasing mouse
|
||||||
// Default: true
|
// Default: true
|
||||||
//
|
//
|
||||||
// copy_on_select true
|
// copy_on_select true
|
||||||
|
|
||||||
// Path to the default editor to use to edit pane scrollbuffer
|
// Path to the default editor to use to edit pane scrollbuffer
|
||||||
// Default: $EDITOR or $VISUAL
|
// Default: $EDITOR or $VISUAL
|
||||||
// scrollback_editor "/usr/bin/vim"
|
// scrollback_editor "/usr/bin/vim"
|
||||||
|
|
||||||
// A fixed name to always give the Zellij session.
|
// A fixed name to always give the Zellij session.
|
||||||
// Consider also setting `attach_to_session true,`
|
// Consider also setting `attach_to_session true,`
|
||||||
// otherwise this will error if such a session exists.
|
// otherwise this will error if such a session exists.
|
||||||
// Default: <RANDOM>
|
// Default: <RANDOM>
|
||||||
//
|
//
|
||||||
// session_name "My singleton session"
|
// session_name "My singleton session"
|
||||||
|
|
||||||
// When `session_name` is provided, attaches to that session
|
// When `session_name` is provided, attaches to that session
|
||||||
// if it is already running or creates it otherwise.
|
// if it is already running or creates it otherwise.
|
||||||
// Default: false
|
// Default: false
|
||||||
//
|
//
|
||||||
// attach_to_session true
|
// attach_to_session true
|
||||||
|
|
||||||
// Toggle between having Zellij lay out panes according to a predefined set of layouts whenever possible
|
// Toggle between having Zellij lay out panes according to a predefined set of layouts whenever possible
|
||||||
// Options:
|
// Options:
|
||||||
// - true (default)
|
// - true (default)
|
||||||
// - false
|
// - false
|
||||||
//
|
//
|
||||||
// auto_layout false
|
// auto_layout false
|
||||||
|
|
||||||
// Whether sessions should be serialized to the cache folder (including their tabs/panes, cwds and running commands) so that they can later be resurrected
|
// Whether sessions should be serialized to the cache folder (including their tabs/panes, cwds and running commands) so that they can later be resurrected
|
||||||
// Options:
|
// Options:
|
||||||
// - true (default)
|
// - true (default)
|
||||||
// - false
|
// - false
|
||||||
//
|
//
|
||||||
// session_serialization false
|
session_serialization false
|
||||||
|
|
||||||
// Whether pane viewports are serialized along with the session, default is false
|
// Whether pane viewports are serialized along with the session, default is false
|
||||||
// Options:
|
// Options:
|
||||||
// - true
|
// - true
|
||||||
// - false (default)
|
// - false (default)
|
||||||
//
|
//
|
||||||
// serialize_pane_viewport false
|
// serialize_pane_viewport false
|
||||||
|
|
||||||
// Scrollback lines to serialize along with the pane viewport when serializing sessions, 0
|
// Scrollback lines to serialize along with the pane viewport when serializing sessions, 0
|
||||||
// defaults to the scrollback size. If this number is higher than the scrollback size, it will
|
// defaults to the scrollback size. If this number is higher than the scrollback size, it will
|
||||||
// also default to the scrollback size. This does nothing if `serialize_pane_viewport` is not true.
|
// also default to the scrollback size. This does nothing if `serialize_pane_viewport` is not true.
|
||||||
//
|
//
|
||||||
// scrollback_lines_to_serialize 10000
|
// scrollback_lines_to_serialize 10000
|
||||||
|
|
||||||
// Enable or disable the rendering of styled and colored underlines (undercurl).
|
// Enable or disable the rendering of styled and colored underlines (undercurl).
|
||||||
// May need to be disabled for certain unsupported terminals
|
// May need to be disabled for certain unsupported terminals
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
// Default: true
|
// Default: true
|
||||||
//
|
//
|
||||||
// styled_underlines false
|
// styled_underlines false
|
||||||
|
|
||||||
// How often in seconds sessions are serialized
|
// How often in seconds sessions are serialized
|
||||||
//
|
//
|
||||||
// serialization_interval 10000
|
// serialization_interval 10000
|
||||||
|
|
||||||
// Enable or disable writing of session metadata to disk (if disabled, other sessions might not know
|
// Enable or disable writing of session metadata to disk (if disabled, other sessions might not know
|
||||||
// metadata info on this session)
|
// metadata info on this session)
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
// Default: false
|
// Default: false
|
||||||
//
|
//
|
||||||
// disable_session_metadata false
|
// disable_session_metadata false
|
||||||
|
|
||||||
// Enable or disable support for the enhanced Kitty Keyboard Protocol (the host terminal must also support it)
|
// Enable or disable support for the enhanced Kitty Keyboard Protocol (the host terminal must also support it)
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
// Default: true (if the host terminal supports it)
|
// Default: true (if the host terminal supports it)
|
||||||
//
|
//
|
||||||
// support_kitty_keyboard_protocol false
|
// support_kitty_keyboard_protocol false
|
||||||
// Whether to make sure a local web server is running when a new Zellij session starts.
|
// Whether to make sure a local web server is running when a new Zellij session starts.
|
||||||
// This web server will allow creating new sessions and attaching to existing ones that have
|
// This web server will allow creating new sessions and attaching to existing ones that have
|
||||||
// opted in to being shared in the browser.
|
// opted in to being shared in the browser.
|
||||||
// When enabled, navigate to http://127.0.0.1:8082
|
// When enabled, navigate to http://127.0.0.1:8082
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
//
|
//
|
||||||
// Note: a local web server can still be manually started from within a Zellij session or from the CLI.
|
// Note: a local web server can still be manually started from within a Zellij session or from the CLI.
|
||||||
// If this is not desired, one can use a version of Zellij compiled without
|
// If this is not desired, one can use a version of Zellij compiled without
|
||||||
// `web_server_capability`
|
// `web_server_capability`
|
||||||
//
|
//
|
||||||
// Possible values:
|
// Possible values:
|
||||||
// - true
|
// - true
|
||||||
// - false
|
// - false
|
||||||
// Default: false
|
// Default: false
|
||||||
//
|
//
|
||||||
// web_server false
|
// web_server false
|
||||||
// Whether to allow sessions started in the terminal to be shared through a local web server, assuming one is
|
// Whether to allow sessions started in the terminal to be shared through a local web server, assuming one is
|
||||||
// running (see the `web_server` option for more details).
|
// running (see the `web_server` option for more details).
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
//
|
//
|
||||||
// Note: This is an administrative separation and not intended as a security measure.
|
// Note: This is an administrative separation and not intended as a security measure.
|
||||||
//
|
//
|
||||||
// Possible values:
|
// Possible values:
|
||||||
// - "on" (allow web sharing through the local web server if it
|
// - "on" (allow web sharing through the local web server if it
|
||||||
// is online)
|
// is online)
|
||||||
// - "off" (do not allow web sharing unless sessions explicitly opt-in to it)
|
// - "off" (do not allow web sharing unless sessions explicitly opt-in to it)
|
||||||
// - "disabled" (do not allow web sharing and do not permit sessions started in the terminal to opt-in to it)
|
// - "disabled" (do not allow web sharing and do not permit sessions started in the terminal to opt-in to it)
|
||||||
// Default: "off"
|
// Default: "off"
|
||||||
//
|
//
|
||||||
// web_sharing "off"
|
// web_sharing "off"
|
||||||
// A path to a certificate file to be used when setting up the web client to serve the
|
// A path to a certificate file to be used when setting up the web client to serve the
|
||||||
// connection over HTTPs
|
// connection over HTTPs
|
||||||
//
|
//
|
||||||
// web_server_cert "/path/to/cert.pem"
|
// web_server_cert "/path/to/cert.pem"
|
||||||
// A path to a key file to be used when setting up the web client to serve the
|
// A path to a key file to be used when setting up the web client to serve the
|
||||||
// connection over HTTPs
|
// connection over HTTPs
|
||||||
//
|
//
|
||||||
// web_server_key "/path/to/key.pem"
|
// web_server_key "/path/to/key.pem"
|
||||||
/// Whether to enforce https connections to the web server when it is bound to localhost
|
/// Whether to enforce https connections to the web server when it is bound to localhost
|
||||||
/// (127.0.0.0/8)
|
/// (127.0.0.0/8)
|
||||||
@@ -499,39 +499,39 @@ pane_frames false
|
|||||||
/// Note: https is ALWAYS enforced when bound to non-local interfaces
|
/// Note: https is ALWAYS enforced when bound to non-local interfaces
|
||||||
///
|
///
|
||||||
/// Default: false
|
/// Default: false
|
||||||
//
|
//
|
||||||
// enforce_https_for_localhost false
|
// enforce_https_for_localhost false
|
||||||
|
|
||||||
// Whether to stack panes when resizing beyond a certain size
|
// Whether to stack panes when resizing beyond a certain size
|
||||||
// Default: true
|
// Default: true
|
||||||
//
|
//
|
||||||
// stacked_resize false
|
// stacked_resize false
|
||||||
|
|
||||||
// Whether to show tips on startup
|
// Whether to show tips on startup
|
||||||
// Default: true
|
// Default: true
|
||||||
//
|
//
|
||||||
show_startup_tips false
|
show_startup_tips false
|
||||||
|
|
||||||
// Whether to show release notes on first version run
|
// Whether to show release notes on first version run
|
||||||
// Default: true
|
// Default: true
|
||||||
//
|
//
|
||||||
// show_release_notes false
|
show_release_notes false
|
||||||
|
|
||||||
// Whether to enable mouse hover effects and pane grouping functionality
|
// Whether to enable mouse hover effects and pane grouping functionality
|
||||||
// default is true
|
// default is true
|
||||||
// advanced_mouse_actions false
|
// advanced_mouse_actions false
|
||||||
|
|
||||||
// The ip address the web server should listen on when it starts
|
// The ip address the web server should listen on when it starts
|
||||||
// Default: "127.0.0.1"
|
// Default: "127.0.0.1"
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
// web_server_ip "127.0.0.1"
|
// web_server_ip "127.0.0.1"
|
||||||
|
|
||||||
// The port the web server should listen on when it starts
|
// The port the web server should listen on when it starts
|
||||||
// Default: 8082
|
// Default: 8082
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
// web_server_port 8082
|
// web_server_port 8082
|
||||||
|
|
||||||
// A command to run (will be wrapped with sh -c and provided the RESURRECT_COMMAND env variable)
|
// A command to run (will be wrapped with sh -c and provided the RESURRECT_COMMAND env variable)
|
||||||
// after Zellij attempts to discover a command inside a pane when resurrecting sessions, the STDOUT
|
// after Zellij attempts to discover a command inside a pane when resurrecting sessions, the STDOUT
|
||||||
// of this command will be used instead of the discovered RESURRECT_COMMAND
|
// of this command will be used instead of the discovered RESURRECT_COMMAND
|
||||||
// can be useful for removing wrappers around commands
|
// can be useful for removing wrappers around commands
|
||||||
|
|||||||
Reference in New Issue
Block a user