Skip to content
Merged
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
8 changes: 7 additions & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
daliserver (0.3) UNRELEASED; urgency=medium
daliserver (0.4) unstable; urgency=medium

* Add systemd unit, SysV init script is kept for compatibility

-- Gregor Riepl <onitake@gmail.com> Mon, 12 Feb 2024 00:32:54 +0100

daliserver (0.3) unstable; urgency=medium

* Numerous bug fixes (thanks to all contributors!)
* Debian packaging cleanup, hardening
Expand Down
2 changes: 1 addition & 1 deletion debian/compat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9
10
6 changes: 4 additions & 2 deletions debian/daliserver.default
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Additional options for daliserver
# -d <loglevel> sets the logging level (fatal, error, warn, info, default=info)
# -n enables testing mode without USB connectivity
# -l sets the listening address (use 0.0.0.0 to listen on all interfaces)
# -p changes the port
# -u <bus:dev> only map to one specific USB port (will use the first found otherwise)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that statically configuring bus:dev here is pointless, because these can and will change each time the device is enumerated. The -u option is only useful to pass in bus:dev that have been discovered from the running system.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it depends. On some systems, the order may be consistent across boots, as long as you don't plug into a different port. But this is only an example I thought may be useful to include here.

# -l <address> sets the listening address (use 0.0.0.0 to listen on all interfaces, default=127.0.0.1)
# -p <port> changes the TCP port (default=55825)
DALISERVER_OPTS=""

10 changes: 10 additions & 0 deletions debian/daliserver.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=DALI USB adapter multiplexer

[Service]
# see the defaults file for useful options
EnvironmentFile=-/etc/default/daliserver
ExecStart=/usr/bin/daliserver ${DALISERVER_OPTS}

[Install]
WantedBy=multi-user.target
Empty file modified perl/lampcheck.pl
100644 → 100755
Empty file.