* [sisyphus] systemd
@ 2013-04-12 0:49 Anton Gorlov
2013-04-12 0:50 ` Anton Gorlov
2013-04-12 8:46 ` Sergei Epiphanov
0 siblings, 2 replies; 6+ messages in thread
From: Anton Gorlov @ 2013-04-12 0:49 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
Как бы понять чего в данном случае не хватило для счастья
и собственно как лечить
root@stlk systemd]# systemctl status postgresql.service
postgresql.service - LSB: PostgreSQL RDBMS Server
Loaded: loaded (/etc/rc.d/init.d/postgresql)
Active: failed (Result: timeout) since Fri 2013-04-12 04:43:35 MSK;
3min 48s ago
Process: 3487 ExecStart=/etc/rc.d/init.d/postgresql start
(code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/postgresql.service
├─ 9675 postgres -D /var/lib/pgsql/data -C /var/lib/pgsql-root
├─10658 postgres: writer process
├─10659 postgres: wal writer process
├─10660 postgres: autovacuum launcher process
└─10661 postgres: stats collector process
Apr 12 04:38:35 stlk systemd[1]: Starting LSB: PostgreSQL RDBMS Server...
Apr 12 04:39:29 stlk postgresql[3487]: Adjusting environment for
postgresql: [ DONE ]
Apr 12 04:39:31 stlk postgresql[3487]: Starting postgresql service: [ DONE ]
Apr 12 04:39:31 stlk postgresql[3487]: Link postgresql socket: [ DONE ]
Apr 12 04:39:31 stlk systemd[1]: PID file /var/run/postmaster.pid not
readable (yet?) after start.
Apr 12 04:43:35 stlk systemd[1]: postgresql.service operation timed out.
Terminating.
Apr 12 04:43:35 stlk systemd[1]: Failed to start LSB: PostgreSQL RDBMS
Server.
Apr 12 04:43:35 stlk systemd[1]: Unit postgresql.service entered failed
state
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] systemd
2013-04-12 0:49 [sisyphus] systemd Anton Gorlov
@ 2013-04-12 0:50 ` Anton Gorlov
2013-04-12 8:46 ` Sergei Epiphanov
1 sibling, 0 replies; 6+ messages in thread
From: Anton Gorlov @ 2013-04-12 0:50 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
при этом
ps aux | grep pg
postgres 9675 0.0 0.0 102004 8516 ? S 04:39 0:00
postgres -D /var/lib/pgsql/data -C /var/lib/pgsql-root
root 11730 0.0 0.0 7020 636 pts/3 S+ 04:49 0:00 grep pg
12.04.2013 04:49, Anton Gorlov пишет:
> Как бы понять чего в данном случае не хватило для счастья
> и собственно как лечить
>
> root@stlk systemd]# systemctl status postgresql.service
> postgresql.service - LSB: PostgreSQL RDBMS Server
> Loaded: loaded (/etc/rc.d/init.d/postgresql)
> Active: failed (Result: timeout) since Fri 2013-04-12 04:43:35 MSK;
> 3min 48s ago
> Process: 3487 ExecStart=/etc/rc.d/init.d/postgresql start
> (code=exited, status=0/SUCCESS)
> CGroup: name=systemd:/system/postgresql.service
> ├─ 9675 postgres -D /var/lib/pgsql/data -C /var/lib/pgsql-root
> ├─10658 postgres: writer process
> ├─10659 postgres: wal writer process
> ├─10660 postgres: autovacuum launcher process
> └─10661 postgres: stats collector process
>
> Apr 12 04:38:35 stlk systemd[1]: Starting LSB: PostgreSQL RDBMS Server...
> Apr 12 04:39:29 stlk postgresql[3487]: Adjusting environment for
> postgresql: [ DONE ]
> Apr 12 04:39:31 stlk postgresql[3487]: Starting postgresql service: [
> DONE ]
> Apr 12 04:39:31 stlk postgresql[3487]: Link postgresql socket: [ DONE ]
> Apr 12 04:39:31 stlk systemd[1]: PID file /var/run/postmaster.pid not
> readable (yet?) after start.
> Apr 12 04:43:35 stlk systemd[1]: postgresql.service operation timed
> out. Terminating.
> Apr 12 04:43:35 stlk systemd[1]: Failed to start LSB: PostgreSQL RDBMS
> Server.
> Apr 12 04:43:35 stlk systemd[1]: Unit postgresql.service entered
> failed state
>
> _______________________________________________
> Sisyphus mailing list
> Sisyphus@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sisyphus
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] systemd
2013-04-12 0:49 [sisyphus] systemd Anton Gorlov
2013-04-12 0:50 ` Anton Gorlov
@ 2013-04-12 8:46 ` Sergei Epiphanov
2013-04-12 11:51 ` Anton Gorlov
1 sibling, 1 reply; 6+ messages in thread
From: Sergei Epiphanov @ 2013-04-12 8:46 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
On 12 апреля 2013 04:49 Anton Gorlov wrote:
> Как бы понять чего в данном случае не хватило для счастья
> и собственно как лечить
Я накидал такой .service файл:
# cat /etc/systemd/system/postgresql.service
[Unit]
Description=Postgresql service
After=network.service network.target
[Service]
ExecStart=/etc/rc.d/init.d/postgresql start
ExecStop=/etc/rc.d/init.d/postgresql stop
ExecReload=/etc/rc.d/init.d/postgresql reload
Type=forking
TimeoutSec=0
[Install]
WantedBy=network.target multi-user.target
Проблем с запуском нет:
# systemctl status postgresql.service
postgresql.service - Postgresql service
Loaded: loaded (/etc/systemd/system/postgresql.service; enabled)
Active: active (running) since Пн 2013-04-08 12:46:41 MSK; 4 days
ago
Main PID: 11880 (postgres)
CGroup: name=systemd:/system/postgresql.service
<cut/>
апр 08 12:45:39 systemd[1]: Starting Postgresql service...
апр 08 12:46:39 postgresql[30907]: Adjusting environment for postgresql: [
DONE ]
апр 08 12:46:41 postgresql[30907]: Starting postgresql service: [ DONE ]
апр 08 12:46:41 postgresql[30907]: Link postgresql socket: [ DONE ]
апр 08 12:46:41 systemd[1]: Started Postgresql service.
#
--
С уважением, Епифанов Сергей
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] systemd
2013-04-12 8:46 ` Sergei Epiphanov
@ 2013-04-12 11:51 ` Anton Gorlov
2013-04-12 12:39 ` Sergei Epiphanov
0 siblings, 1 reply; 6+ messages in thread
From: Anton Gorlov @ 2013-04-12 11:51 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
12.04.2013 12:46, Sergei Epiphanov пишет:
> Я накидал такой .service файл:
>
> # cat /etc/systemd/system/postgresql.service
> [Unit]
> Description=Postgresql service
> After=network.service network.target
>
> [Service]
> ExecStart=/etc/rc.d/init.d/postgresql start
> ExecStop=/etc/rc.d/init.d/postgresql stop
> ExecReload=/etc/rc.d/init.d/postgresql reload
> Type=forking
> TimeoutSec=0
>
> [Install]
> WantedBy=network.target multi-user.target
>
> Проблем с запуском нет:
Аха...
А сейчас интересно откуда он запускается?
Ещё вопрос - когда service нужно складывать в /etc/systemd/system, а
когда в
/etc/systemd/system/multi-user.target.wants ?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] systemd
2013-04-12 11:51 ` Anton Gorlov
@ 2013-04-12 12:39 ` Sergei Epiphanov
2013-04-12 16:37 ` Anton Gorlov
0 siblings, 1 reply; 6+ messages in thread
From: Sergei Epiphanov @ 2013-04-12 12:39 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
On 12 апреля 2013 15:51 Anton Gorlov wrote:
> Аха...
> А сейчас интересно откуда он запускается?
Через проброс init-скрипта в systemd.
> Ещё вопрос - когда service нужно складывать в /etc/systemd/system, а
> когда в
> /etc/systemd/system/multi-user.target.wants ?
Все Ваши .service-файлы надо выкладывать в /etc/systemd/system. В каталог
multi-user.tar.wants он пропишется ссылкой через
'systemctl enable postgresql.service'.
Можно делать ссылки самому, тогда muti-user.target (если, конечно, выбран он)
переберёт их
Возможно, к muti-user.target в service-файле можно добавить graphical.target.
--
С уважением, Епифанов Сергей
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] systemd
2013-04-12 12:39 ` Sergei Epiphanov
@ 2013-04-12 16:37 ` Anton Gorlov
0 siblings, 0 replies; 6+ messages in thread
From: Anton Gorlov @ 2013-04-12 16:37 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
Ааатлично.. так то лучше.
ну и парочка варнингов
==
[ 24.548485] cgroup: libvirtd (1701) created nested cgroup for
controller "memory" which has incomplete hierarchy support. Nested
cgroups may change behavior in the future.
[ 24.548487] cgroup: "memory" requires setting use_hierarchy to 1 on
the root.
[ 24.548510] cgroup: libvirtd (1701) created nested cgroup for
controller "devices" which has incomplete hierarchy support. Nested
cgroups may change behavior in the future.
[ 24.548536] cgroup: libvirtd (1701) created nested cgroup for
controller "blkio" which has incomplete hierarchy support. Nested
cgroups may change behavior in the future.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-04-12 16:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-12 0:49 [sisyphus] systemd Anton Gorlov
2013-04-12 0:50 ` Anton Gorlov
2013-04-12 8:46 ` Sergei Epiphanov
2013-04-12 11:51 ` Anton Gorlov
2013-04-12 12:39 ` Sergei Epiphanov
2013-04-12 16:37 ` Anton Gorlov
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git