Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions doc/runscripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ <h1 id="runit---collection-of-run-scripts">runit - collection of run
<a href="#fam">fam</a><br />
<a href="#fcron">fcron</a><br />
<a href="#fetchmail">fetchmail</a><br />
<a href="#gammastep">gammastep</a><br />
<a href="#gdm">gdm</a><br />
<a href="#getty">getty</a><br />
<a href="#gpm">gpm</a><br />
Expand Down Expand Up @@ -379,6 +380,18 @@ <h3 id="a-fetchmail-run-script"><span id="fetchmail">A
--nodetach \
--daemon ${INTERVAL}</code></pre>
<hr />
<h3 id="a-gammastep-run-script"><span id="gammastep">A
<code>gammastep</code> run script</span></h3>
<p>(<em>Debian - Wayland</em>)</p>
<pre><code>#!/bin/sh
exec 2&gt;&amp;1
export USER=&lt;your-username&gt;
export XDG_RUNTIME_DIR=/tmp/runtime-$USER
export WAYLAND_DISPLAY=wayland-1
exec chpst -u $USER gammastep</code></pre>
<hr />
<p>You would need to either change the <code>USER</code> variable, or <a
href="faq.html#user">run this service as user</a></p>
<h3 id="a-gdm-run-script"><span id="gdm">A <code>gdm</code> run
script</span></h3>
<p>(<em>Debian woody</em>)</p>
Expand Down
18 changes: 18 additions & 0 deletions md/runscripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ dutoit.]{.small}
[fam](#fam)\
[fcron](#fcron)\
[fetchmail](#fetchmail)\
[gammastep](#gammastep)\
[gdm](#gdm)\
[getty](#getty)\
[gpm](#gpm)\
Expand Down Expand Up @@ -467,6 +468,23 @@ This service needs a [log service](faq.html#createlog) to be set up.

---


### [A `gammastep` run script]{#gammastep}

(*Debian - Wayland*)

#!/bin/sh
exec 2>&1
export USER=<your-username>
export XDG_RUNTIME_DIR=/tmp/runtime-$USER
export WAYLAND_DISPLAY=wayland-1
exec chpst -u $USER gammastep

---

You would need to either change the `USER` variable, or
[run this service as user](faq.html#user)

### [A `gdm` run script]{#gdm}

(*Debian woody*)
Expand Down