You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Daniel T. Borelli dd293e3e8b
Detect a file type ELF
7 months ago
.github/workflows Add github workflows 1 year ago
defines Revert "VoidLinux: define the location of the log directory" 8 months ago
icons Update email 1 year ago
src Detect a file type ELF 7 months ago
.gitignore Update gitignore 2 years ago
Makefile Detect a file type ELF 7 months ago
README.md Handle actions for log service 7 months ago
screenshot_00.png Indicate with color which files were uploaded 2 years ago
screenshot_01.png Indicate with color which files were uploaded 2 years ago
screenshot_02.png Handle actions for log service 7 months ago

README.md

xsv

Graphical interface for sv - runit

Release

Support

Each distribution has its own runit configuration. You can experiment with the preprocessor directives to adapt it to yours (always compile in debug mode). Or look in directory defines if you find a definition file for your distro. At the end of the Build section you will find information on how to compile using this file.


Build

Dependencies

  • C++ standard: >= c++11

  • Libraries : fltk (>= 1.3.4rc1), libnotify (*optional)

  • Build: g++, make, fltk-config, install(coreutils)

Make

make debug
-- or --
make release

----------------

make install (default PREFIX=/usr)
-- or --
PREFIX=/usr/local make install
Makefile targets:
Target Description
clean Clean the project directory
debug Build the executable with debug symbols
release Build the executable for performance
install Copy the executable to $PREFIX/bin
dist Create a compressed file with the project files

(*) libnotify: Optional compilation option. By default it is no. Use LIB_NOTIFY=1 make to activate.


Notes:

  • This program needs to be run with administrator permissions.

Preprocessor directives

  • sv program
Directive Description Default Type
SV sv binary /usr/bin/sv string
  • Directories:
Directive Description Default Type ENV=
SV_DIR available services directory /etc/runit/sv string SVDIR
SV_RUN_DIR services directory /run/runit/service string -
SYS_LOG_DIR system log directory /var/log string -
  • Properties:
Directive Description Default Type
TIME_UPDATE seconds of updating the list of service 5 integer
FONT FLTK font name FL_HELVETICA integer
FONT_SZ font size 11 (range 8..14) integer
ASK_SERVICES ask about these services before down/remove tty,dbus,udev,elogind string

Example:

File my_define.h

#define SV "/usr/local/bin/sv"
#define SV_DIR "/etc/local/runit/sv"

Then run make in your terminal:

CXXFLAGS="-include my_define.h" make debug