21 lines
713 B
Dart
21 lines
713 B
Dart
import 'package:flutter/cupertino.dart';
|
|
|
|
import '../../about/internal/application/ServerProfile.dart';
|
|
import '../../about/internal/application/ServiceConfig.dart';
|
|
import 'SystemdState.dart';
|
|
|
|
/// Step-by-step builder that generates a systemd `.service` unit, previews it,
|
|
/// then registers it (daemon-reload → enable → start → status).
|
|
class Systemd extends StatefulWidget {
|
|
final ServerProfile server;
|
|
|
|
/// Prefills the form and, once the unit registers, has its `serviceName`
|
|
/// updated so deploys and log views use the new unit.
|
|
final ServiceConfig? service;
|
|
|
|
const Systemd({super.key, required this.server, this.service});
|
|
|
|
@override
|
|
State<Systemd> createState() => SystemdState();
|
|
}
|