tools/mod2spec.sh
author Kim Alvefur <zash@zash.se>
Tue, 14 May 2024 17:07:47 +0200
changeset 13494 6f840763fc73
parent 13259 df96af198222
permissions -rwxr-xr-x
net.server_epoll: Add support for systemd socket activation Allows creating listening sockets and accepting client connections before Prosody starts. This is unlike normal Prosody dynamic resource management, where ports may added and removed at any time, and the ports defined by the config. Weird things happen if these are closed (e.g. due to reload) so here we prevent closing and ensure sockets are reused when opened again.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13259
df96af198222 tools: Reflect bash-ness of mod2spec in shebang
Kim Alvefur <zash@zash.se>
parents: 13204
diff changeset
     1
#!/bin/bash
13199
1a59a40c6443 tools: Add mod2spec.sh, turns util.example into spec/util_example_spec.lua
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     2
set -eu
1a59a40c6443 tools: Add mod2spec.sh, turns util.example into spec/util_example_spec.lua
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     3
1a59a40c6443 tools: Add mod2spec.sh, turns util.example into spec/util_example_spec.lua
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     4
echo "spec/${1//./_}_spec.lua"