File: conmux-daemon-generator

package info (click to toggle)
conmux 0.12.0-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 368 kB
  • sloc: exp: 1,772; perl: 1,361; python: 202; sh: 124; makefile: 51
file content (15 lines) | stat: -rwxr-xr-x 477 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e

GENERATORPATH=$1/conmux.service.d

# Generate conmux-daemon instances hooked up in conmux service
for f in /etc/conmux/*.cf; do
    # if no file, we will get f=/etc/conmux/*.cf
    [ ! -f "$f" ] && continue
    configname=`basename "$f"`

	[ ! -d "$GENERATORPATH" ] && mkdir -p "$GENERATORPATH"
    echo "# Automatically generated by conmux-daemon-generator
[Unit]
Wants=conmux-daemon@${configname}.service" > "$GENERATORPATH"/conmux-daemon-$configname.conf
done