Skip to content

Set custom process title for tarantool #475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bigbes opened this issue Sep 1, 2014 · 1 comment
Closed

Set custom process title for tarantool #475

bigbes opened this issue Sep 1, 2014 · 1 comment
Assignees
Labels
feature A new functionality
Milestone

Comments

@bigbes
Copy link
Contributor

bigbes commented Sep 1, 2014

Issue blocks naming in dist.lua:

├─ /usr/bin/tarantool tarantool_ctl: running
│  ├─ /usr/bin/tarantool tarantool_ctl: running
│  ├─ /usr/bin/tarantool tarantool_ctl: running
│  ├─ /usr/bin/tarantool tarantool_ctl: running
│  ├─ /usr/bin/tarantool tarantool_ctl: running
│  ├─ /usr/bin/tarantool tarantool_ctl: running
│  ├─ /usr/bin/tarantool tarantool_ctl: running
│  └─ /usr/bin/tarantool tarantool_ctl: spawner

where instead of tarantool_ctl must be script name.
Create custom module proc_title, where we'll have such functions as:

title = require('proc_title')
title.getfmt()
title.getargs()
title.set{fmt, arg[0] ...}

fmt'll be basically lua format string, but additionally may have such fields as

$s => "running"/"spawner"/"orphan" ...
$p => "abspath/tarantool"
$l => box.cfg.listen
$a => require('console').port #currently we have no ability to get port of console and we may have many console
$c => box.cfg.custom_proc_title
@kostja
Copy link
Contributor

kostja commented Sep 24, 2014

This issue blocks nothing, and dist.lua is sufficiently broken already to not bother with this one.
To 1.7.

@kostja kostja added this to the 1.7 milestone Sep 24, 2014
@kostja kostja added the feature A new functionality label Feb 2, 2015
@kostja kostja modified the milestones: 1.6.7, 1.7 Aug 31, 2015
mejedi added a commit that referenced this issue Oct 26, 2015
 * add proctitle.h;
 * add config-time detection of setproctitle() syscall;
 * fixing program_invocation_(short)?_name globals (glibc);
 * fixing progname (getprogname(), initialized with argv[0]);
 * this module now works on osx;
 * fix osx ps displaying garbage (argc-1 extra \0 necessary);
 * general refactoring;
 * fix linux proctitle truncation (init_set_proctitle was called with
   argv+1, this is wrong);

 * CAVEAT: 'progname: ' prefix no longer present, will fix later
mejedi added a commit that referenced this issue Oct 27, 2015
mejedi added a commit that referenced this issue Oct 28, 2015
 * add proctitle.h;
 * add config-time detection of setproctitle() syscall;
 * fixing program_invocation_(short)?_name globals (glibc);
 * fixing progname (getprogname(), initialized with argv[0]);
 * this module now works on osx;
 * fix osx ps displaying garbage (argc-1 extra \0 necessary);
 * general refactoring;
 * fix linux proctitle truncation (init_set_proctitle was called with
   argv+1, this is wrong);

 * CAVEAT: 'progname: ' prefix no longer present, will fix later
mejedi added a commit that referenced this issue Oct 28, 2015
mejedi added a commit that referenced this issue Oct 28, 2015
mejedi added a commit that referenced this issue Nov 5, 2015
 * add proctitle.h;
 * add config-time detection of setproctitle() syscall;
 * fixing program_invocation_(short)?_name globals (glibc);
 * fixing progname (getprogname(), initialized with argv[0]);
 * this module now works on osx;
 * fix osx ps displaying garbage (argc-1 extra \0 necessary);
 * general refactoring;
 * fix linux proctitle truncation (init_set_proctitle was called with
   argv+1, this is wrong);

 * CAVEAT: 'progname: ' prefix no longer present, will fix later
mejedi added a commit that referenced this issue Nov 5, 2015
mejedi added a commit that referenced this issue Nov 5, 2015
kostja added a commit that referenced this issue Nov 5, 2015
proctitle.c: since it's now fully rewritten by us, move from third_party
process_title.c: rename to title.c

Style changes.
@kostja kostja closed this as completed Nov 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new functionality
Projects
None yet
Development

No branches or pull requests

3 participants