Commit graph

148 commits

Author SHA1 Message Date
Alexandre Aubin
c97a839630 Custom service description: let's be a bit smarter and use the one from the systemd service if it exists 2019-12-01 18:42:31 +01:00
Alexandre Aubin
dd92a34202 Uh idk we also need to run this explicitly with /bin/bash 2019-11-22 15:10:44 +01:00
Alexandre Aubin
fa5c0e9a70 Ugh had some weird issue because for some reason in some context subprocess uses /bin/sh ... 2019-11-20 20:16:28 +01:00
Alexandre Aubin
7986f61b14 Specific shit for mysql 2019-11-17 16:59:35 +01:00
Alexandre Aubin
bb8b1b052d Using /var/log/daemon.log or /var/log/syslog is pointless, these files logs many different things. Instead, we shall always return the logs from journalctl 2019-11-17 16:39:12 +01:00
Alexandre Aubin
e70530a9db Remove deprecated / useless option from 'service add', and add new ones for status and conf check and port exposure 2019-11-14 17:08:10 +01:00
Alexandre Aubin
5a68250322 test-conf -> test_conf, and test-status -> test_status 2019-11-08 22:35:25 +01:00
Alexandre Aubin
4b3a4c7e4e Fetch the timestamp of the latest state change, not just the last time it got up and running... 2019-11-07 13:48:42 +01:00
Alexandre Aubin
acba0c4a10 Use a proper subprocess for conf test instead of dirty os.system + store errors if there are 2019-11-07 12:25:19 +01:00
Alexandre Aubin
5d46f3ef88 Imho we don't need those 'active' and 'service_file_path' info... 2019-11-07 11:34:20 +01:00
Alexandre Aubin
9b77123938 loaded -> start_on_boot, which is more meaningful ... 2019-11-07 11:34:20 +01:00
Alexandre Aubin
e15d8e7262 Add test about configuration validity 2019-11-07 11:34:20 +01:00
Alexandre Aubin
d879d27208 Add test-status to have a custom status check for service like postfix and yunohost-firewall 2019-11-07 11:34:20 +01:00
Alexandre Aubin
1a095f1299 Remove service_enable from stuff logged using operation logger ... it's buggy (i18n not working) + doesn't make sense that this one and not service_disable and service add/start/... 2019-08-05 19:10:48 +02:00
Alexandre Aubin
817c3cdd41 Merge branch 'stretch-unstable' into decouple-regenconf-from-services 2019-04-18 15:33:02 +02:00
Alexandre Aubin
69d2ad9a8a Fix loaded status for sysv services 2019-04-03 16:56:46 +02:00
Alexandre Aubin
889eb0caa1 [fix] Fix the dbus interface to get info for services, because this was not working when service is disabled 2019-04-02 20:47:03 +02:00
Alexandre Aubin
c74bff31d1 Fix listing of succeed/failed hook names 2019-03-04 17:44:20 +01:00
Alexandre Aubin
96bd6f8deb Fix a few things for service_regen_conf backward compatibility 2019-02-18 19:27:40 +01:00
Alexandre Aubin
e6f3a99269 Change binding from service_regen_conf to tools_regen_conf 2019-02-18 19:27:40 +01:00
Alexandre Aubin
739bf8e559 Brutally move regenconf stuff to a new regenconf.py file 2019-02-18 19:27:40 +01:00
Josué Tille
37a2cc2e1c
Adapt the service and backup to support new result of hook_callback result 2019-02-12 10:15:23 +01:00
Alexandre Aubin
723ff2eebb More elegant loop 2019-01-26 23:33:38 +01:00
Alexandre Aubin
e379f4e3db Fix handling of old services with empty log_type 2019-01-26 23:32:07 +01:00
Pierre Bourré
bbb004e056 fix typo 2019-01-23 00:50:45 +01:00
Pierre Bourré
836ec050fb add the systemd logs 2019-01-23 00:03:36 +01:00
Pierre Bourré
6d76ef95f4 array for the admin panel 2019-01-22 23:07:01 +01:00
Pierre Bourré
a2935dc44b limit logs to a number 2019-01-22 01:50:16 +01:00
Pierre Bourré
ddbe11035d add systemd logs for apps 2019-01-22 01:24:57 +01:00
Alexandre Aubin
836083a62e Handle unexpected errors... 2019-01-17 20:15:18 +00:00
Alexandre Aubin
442bd8c3e4 [fix] Woopsies ... cannot use check_call because we need a non-block call. Also Popen won't trigger a CalledProcessError 2019-01-17 20:12:09 +00:00
Alexandre Aubin
bfe5056720
[fix] _run_service_command was not properly returning False if command failed (#616) 2019-01-17 16:12:49 +01:00
Pierre Bourré
3990527f96 add locales 2019-01-09 00:40:26 +01:00
Pierre Bourré
d1a822211c add restart and reload functionality to yunohost service 2019-01-05 03:11:08 +01:00
Alexandre Aubin
115b557b67 autopep8 + a few manual tweaks 2018-12-13 18:52:26 +00:00
Alexandre Aubin
2dd1d8ccfe Unused errno + remaining unecessary m18n.n 2018-12-12 19:01:28 +00:00
Irina LAMBLA
4ba309a221 modif MoulinetteError to YunohostError 2018-12-12 19:01:28 +00:00
Irina LAMBLA
fab662f4ef The rest
The ones that sed didn't find. Modified by hand.
2018-12-12 18:56:26 +00:00
Irina LAMBLA
0468d6b900 sed 3 lines
deletion of line breaks to be able to use "sed" :
sed -i "N; s@MoulinetteError(.*m18n\.n(\n* *@MoulinetteError(m18n.n(@g"
2018-12-12 18:56:26 +00:00
Irina LAMBLA
f2e184d8b2 moulinette MoulinetteError oneline 2018-12-12 18:56:26 +00:00
Alexandre Aubin
bf676c2fd8
Merge pull request #552 from kir0ul/enh-human-readable-date
[enh] Human readable date
2018-12-12 13:12:02 +01:00
Alexandre Aubin
4d4b14b82c
Change message about conf now being managed by service -> yunohost (#597) 2018-12-10 16:23:30 +01:00
ljf
db1b00e706 [enh] Use UTC naive format and manage it in moulinette 2018-12-09 23:48:56 +01:00
ljf
830341a687 [enh] Display date correctly 2018-12-09 19:27:44 +01:00
ljf
7f3a35dac0 [enh] Don't change ssh conf if not specified directly 2018-11-27 23:59:13 +01:00
irina11y
95827438c5 Add option '--need-lock' to 'yunohost service add' (#530)
* [enh] Add option '--need-lock'

* corection typo

* correction merge
2018-09-06 14:00:09 +02:00
irina11y
e56616af5e Allow to add a service description on "yunohost service add" (#529)
* [enh] add a service description with YML file

* moins "espace"
2018-09-02 18:18:01 +02:00
ljf
775a16d883 [enh] Rename uo in operation_logger 2018-08-23 18:59:44 +02:00
ljf
6c18e51b82 [enh] Replace string strange list 2018-08-10 15:40:00 +02:00
Alexandre Aubin
77b7f96b33 Remove 'auto' option, essentially irrelevant if we want to properly manage errors 2018-08-09 00:24:31 +00:00